Deutsch English Français Italiano |
<uuq4q9$1mbbf$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Command Languages Versus Programming Languages Date: Sat, 6 Apr 2024 00:25:45 -0000 (UTC) Organization: A noiseless patient Spider Lines: 30 Message-ID: <uuq4q9$1mbbf$1@dont-email.me> 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> <86frvzo01i.fsf@williamsburg.bawden.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 06 Apr 2024 00:25:45 +0200 (CEST) Injection-Info: dont-email.me; posting-host="9c4b8ade0cfa29f0e8cec442ac1d5e3b"; logging-data="1781103"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bBtMf0PjCfkaTcqGA5TdC" User-Agent: Pan/0.155 (Kherson; fc5a80b8) Cancel-Lock: sha1:mRRnp96rm8XhSaAcjhjGDCxX/08= Bytes: 2576 On Fri, 05 Apr 2024 19:35:37 -0400, Alan Bawden 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 > enough parentheses to make the structure clear. It’s like, I don’t know ... you’re trying to save space. Why? It’s like programming inside an apartment block, instead of having a bungalow with a yard of your own.