Sujet : Re: The joy of FORTRAN
De : bowman (at) *nospam* montana.com (rbowman)
Groupes : comp.os.linux.miscDate : 02. Mar 2025, 08:53:35
Autres entêtes
Message-ID : <m2ih3vFhsapU1@mid.individual.net>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
User-Agent : Pan/0.160 (Toresk; )
On Sun, 2 Mar 2025 00:17:39 -0500, c186282 wrote:
I pref to not put the leading bracket on the same line as the 'if' or
'else' because then it's easier to pick out the block by eye - just
look for the '{' on the left.
I tend to put them after to make the code a little more compact. It's easy
enough to bounce between the corresponding braces in vim. The exception is
for complex for statements where the initialization, test, and increment
are on three lines.