Sujet : Re: Command Languages Versus Programming Languages
De : Muttley (at) *nospam* dastardlyhq.com
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 06. Apr 2024, 10:00:12
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uur2us$207b3$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
On Fri, 05 Apr 2024 19:35:37 -0400
Alan Bawden <
alan@csail.mit.edu> wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>
On Fri, 5 Apr 2024 09:17:37 -0000 (UTC), Muttley wrote:
...
>> a =
>> b ?
>> c ? d : e
>> : f ?
>> g ? h : i
>> : j;
>
> Just use brackets. Saves a lot of pain.
>
a=(b?(c?d:e):(f?(g?h:i):j));
>
A normal programmer would write something like:
>
a = b ? (c ? d : e) :
f ? (g ? h : i) :
j;
>
I.e., she would allow herself to use spaces and newlines, and just
ITYM "he" would allow HIMself.
Lets give the woke BS a miss, 95% of developers are men. It doesn't give you
any brownie points, just makes you look a try-hard ass.