Sujet : Re: Which code style do you prefer the most?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 27. Feb 2025, 02:22:02
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vpoenq$2q6ak$7@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Pan/0.162 (Pokrosvk)
On Wed, 26 Feb 2025 19:32:56 -0000 (UTC), John McCue wrote:
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: <snip>
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) ?
Statement bracketing symbols of some sort, yes.
FWIW, the only languages I knew in the commercial world that where being
used back then was COBOL, FORTRAN and Assembly.
Fortran had END statements to mark the end of FUNCTIONs and SUBROUTINEs
right from the beginning.
On top of this, Fortran 77 introduced a structured programming construct
in the form of IF/THEN/ELSE. How far back do you want to go?