Deutsch   English   Français   Italiano  
<86frvzo01i.fsf@williamsburg.bawden.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!bawden.eternal-september.org!.POSTED!not-for-mail
From: Alan Bawden <alan@csail.mit.edu>
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 05 Apr 2024 19:35:37 -0400
Organization: ITS Preservation Society
Lines: 25
Message-ID: <86frvzo01i.fsf@williamsburg.bawden.org>
References: <uu54la$3su5b$6@dont-email.me> <20240329101248.556@kylheku.com>
	<uu6t9h$dq4d$1@dont-email.me> <20240329104716.777@kylheku.com>
	<uu8p02$uebm$1@dont-email.me> <20240330112105.553@kylheku.com>
	<uudrfg$2cskm$1@dont-email.me> <87r0fp8lab.fsf@tudado.org>
	<uuehdj$2hshe$1@dont-email.me> <87wmpg7gpg.fsf@tudado.org>
	<LISP-20240402085115@ram.dialup.fu-berlin.de>
	<LISP-20240402091729@ram.dialup.fu-berlin.de>
	<wrap-20240402092558@ram.dialup.fu-berlin.de>
	<uui7hf$3gona$1@dont-email.me> <uuj1o5$3pvnq$1@dont-email.me>
	<87plv6jv1i.fsf@nosuchdomain.example.com>
	<wwv5xwyifq8.fsf@LkoBDZeT.terraraq.uk>
	<if-20240404121825@ram.dialup.fu-berlin.de>
	<uund4g$ugsb$1@dont-email.me> <uuofjh$19pfd$1@dont-email.me>
	<uuq0fp$1lcgf$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Fri, 05 Apr 2024 23:35:55 +0200 (CEST)
Injection-Info: bawden.eternal-september.org; posting-host="05dd8971cdd4ad3c6c6c61a2aeccfb09";
	logging-data="1761452"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+mrr/QznS2s0Tz3wyjR4Uh"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
Cancel-Lock: sha1:WgdpMSzu53Cr3HxH71iEFqxL9W0=
	sha1:uT+Tx4BwS2FIS7nRVaLp+5qP3IE=
Bytes: 2372

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
enough parentheses to make the structure clear.

- Alan