Re: The joy of FORTRAN

Liste des GroupesRevenir à af computers 
Sujet : Re: The joy of FORTRAN
De : nikke.karlsson (at) *nospam* gmail.com (Niklas Karlsson)
Groupes : alt.folklore.computers comp.os.linux.misc
Date : 03. Mar 2025, 11:05:22
Autres entêtes
Organisation : Department of Redundancy Department
Message-ID : <m2ld72Fhq3U1@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
User-Agent : slrn/1.0.3 (Linux)
On 2025-03-02, c186282 <c186282@nnada.net> wrote:
   So :
>
     if(x>y)
     {
       .....
     }
     else
     {
       .....
     }
>
   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.

Some would probably get on your case for being profligate with vertical
space... but honestly, it doesn't much matter with the kind of screen
real estate we have these days. I do agree that your style has
readability benefits.

Niklas
--
Cool.  I've just witnessed someone try to do an imitation of a
supernova.  Go on, do a quasar next, it's my favourite.
                         -- Malcolm Ray

Date Sujet#  Auteur
26 May 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal