Sujet : Re: Which code style do you prefer the most?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 05. Mar 2025, 00:45:09
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vq83a4$232tl$11@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Pan/0.162 (Pokrosvk)
On Tue, 4 Mar 2025 22:17:34 +0000, Richard Heathfield wrote:
if((a != b &&
c != d &&
e != f) ||
(g = h() * i() &&
(j = k))
{
foo();
}
if
(
a != b && c != d && e != f
||
g == h() * i() && j == k
)
{
foo();
} /*if*/
(with typos corrected and parentheses clutter removed)
Or better, with alternative symbols from iso646.h:
if
(
a != b and c != d and e != f
or
g == h() * i() and j == k
)
{
foo();
} /*if*/