Sujet : Re: Command Languages Versus Programming Languages
De : candycanearter07 (at) *nospam* candycanearter07.nomail.afraid (candycanearter07)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 05. Apr 2024, 13:40:02
Autres entêtes
Organisation : the-candyden-of-code
Message-ID : <uuorf2$1chok$1@dont-email.me>
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 : slrn/pre1.0.4-9 (Linux)
Muttley@dastardlyhq.com <
Muttley@dastardlyhq.com> wrote at 09:17 this Friday (GMT):
On Thu, 4 Apr 2024 23:29:21 -0000 (UTC)
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
On 4 Apr 2024 11:20:48 GMT, Stefan Ram wrote:
>
And let me tell you, when you start getting into that kind of nested
stuff with not parentheses in view, even the "?:" notation can start
looking pretty darn mysterious to some folks.
>
This is where indentation helps. E.g.
>
a =
b ?
c ? d : e
: f ?
g ? h : i
: j;
>
Just use brackets. Saves a lot of pain.
Or just use if blocks if it's too complex.
-- user <candycane> is generated from /dev/urandom