Liste des Groupes | Revenir à cl c |
On 2025-03-04, Richard Heathfield <rjh@cpax.org.uk> wrote:@ (or)On 04/03/2025 21:49, Richard Harnden wrote:(when (or (and (/= a b)
>
<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!)
(/= c d)
(/= e f))
(and (= g (* (h)
(i)))
(= j k)))
(foo))
Les messages affichés proviennent d'usenet.