Liste des Groupes | Revenir à cl c |
On 09/28/24 5:02 AM, Tim Rentsch wrote:
>Andrey Tarasevich <andreytarasevich@hotmail.com> writes:>
>
[...]
>And don't use "Egyptian" braces [the style used in the>
first edition of The C Programming Language, by Kernighan
and Ritchie].
>
This is the proper formatting style with braces
>
if (failed)
{
...
}
else
{
...
}
>
The vertical spacing introduced by the `{` line provides
separation between condition and the branch, which makes
your code much more readable. [...]
What qualities does this layout style have that make it "more
readable", other than it being one that you like or prefer?
Er... The answer to his question is already present in the quoted
portion of my post. "The vertical spacing introduced..."
Les messages affichés proviennent d'usenet.