Sujet : Re: Command Languages Versus Programming Languages
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 05. Apr 2024, 19:37:52
Autres entêtes
Organisation : Stefan Ram
Message-ID : <indentation-20240405183703@ram.dialup.fu-berlin.de>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Janis Papanagnou <janis_papanagnou+
ng@hotmail.com> wrote or quoted:
On 05.04.2024 01:29, Lawrence D'Oliveiro wrote:
This is where indentation helps. E.g.
a =
b ?
c ? d : e
: f ?
g ? h : i
: j;
>
Indentation generally helps.
Let me give it a try to find how I would indent that!
b?
c? d: e:
f?
g? h: i:
j;
The parenthesis are not used for grouping, but are the alternative
form for IF/THEN/ELSE/FI
It's funny how the discussion oscillates between
"too many parentheses" (LISP code) and "not enough parentheses"
("let me add some parens to improve readability").