Sujet : Re: Which code style do you prefer the most?
De : jmccue (at) *nospam* whitedwf.jmcunx.com (John McCue)
Groupes : comp.lang.cDate : 26. Feb 2025, 20:32:56
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vpnq98$2motp$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : tin/2.6.3-20231224 ("Banff") (NetBSD/10.1 (i386))
Janis Papanagnou <janis_papanagnou+
ng@hotmail.com> wrote:
<snip>
The guys old enough to have punched cards - call me a member of this
group - will probably prefer to not write the opening brace on that
same line but open a new line for it, as in
if (flag)
{
doThis();
orThat();
}
But back then, were there any languages outside of academia
that used braces and was used in the commercial world (on
punch cards) ?
I knew of none, but my Punch Card days only lasted a couple
of months (I had a job doing FORTRAN on punch cards).
FWIW, the only languages I knew in the commercial world that
where being used back then was COBOL, FORTRAN and Assembly.
-- [t]csh(1) - "An elegant shell, for a more... civilized age." - Paraphrasing Star Wars