Liste des Groupes | Revenir à cl c |
On 04/03/2025 21:49, Richard Harnden wrote:
>
<snip>
>>
I like the brace on its own line. It visually separates the
condidition from the statement.
Agreed.
>>
How do people format long and complex conditions, given that
you're trying not to a much over 80 columns?
I like to break after a binary operator so that it is
syntactically obvious that the line must continue:
>
if((a != b &&
c != d &&
e != f) ||
(g = h() * i() &&
(j = k))
{
foo();
}
>
(You'll be glad to hear that that's not a direct quote!)
Les messages affichés proviennent d'usenet.