Sujet : Re: how to make a macro work as a single line if stmt without braces
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.cDate : 30. Sep 2024, 02:39:06
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <86wmit2a4l.fsf@linuxsc.com>
References : 1 2 3 4 5 6 7
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Andrey Tarasevich <
andreytarasevich@hotmail.com> writes:
On 09/28/24 10:47 PM, Tim Rentsch wrote:
efer?
>
Er... The answer to his question is already present in the quoted
portion of my post. "The vertical spacing introduced..."
>
Does that mean you think this
>
if (failed) {
...
} else {
>
...
>
}
>
is just as readable? Or is it something besides the
vertical spacing that bears on your "more readable"
judgment?
>
No, the spacing in question is the spacing between the `if`
condition and the first line of the the first compound statement.
My question was misquoted. I was asking about this:
if (failed) {
...
} else {
...
}
where there is a blank line after the "if()" line, both before
and after the "} else {" line, and before the line with the final
closing brace.
This layout has as much vertical separation as the layout style
you prefer (and one more blank line at the end). Do you think it
is just as readable as your preferred layout? Or is it something
besides the vertical spacing that bears on your "more readable"
judgment?