Liste des Groupes | Revenir à cl c |
On 05/03/2025 13:22, Anton Shepelev wrote:I can now reveal that in real code those identifiers don't exist, having been spun into existence merely to serve as an illustration.Richard Heathfield:Agreed. The correct (IMNO, of course) way to re-format the code above is to throw it out and start again. There is no way to make it clear in a single expression. (The appropriate way to organise the final result will depend on what these different identifiers actually are in real code.)
>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!)
There is no way I like for the formatting of multiline
conditions in if()'s.
Les messages affichés proviennent d'usenet.