Deutsch English Français Italiano |
<87ttfv6np9.fsf@eder.anydns.info> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Andreas Eder <a_eder_muc@web.de> Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Command Languages Versus Programming Languages Followup-To: poster Date: Thu, 08 Aug 2024 17:25:54 +0200 Organization: A noiseless patient Spider Lines: 46 Message-ID: <87ttfv6np9.fsf@eder.anydns.info> References: <uu54la$3su5b$6@dont-email.me> <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> <uup8ul$1fr2t$1@dont-email.me> <indentation-20240405183703@ram.dialup.fu-berlin.de> <v8sleh$1g9s4$1@dont-email.me> <v8ubtt$1u86k$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 08 Aug 2024 17:31:03 +0200 (CEST) Injection-Info: dont-email.me; posting-host="b88ffd7fc5ba219128eb76ecc4e063d9"; logging-data="91492"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/b6tncK7vlP32G6ItuIOLR" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:RIjg8VZivOuQa2uo3fs/r3Ei3Bw= sha1:iCG9QA/Lv4Aa6CGLsPNCJSlvy3I= Bytes: 2539 On Di 06 Aug 2024 at 23:34, Lawrence D'Oliveiro <ldo@nz.invalid> wrote: > On Tue, 6 Aug 2024 08:04:35 -0000 (UTC), Sebastian wrote: > >> Better: >> >> a = b ? (c ? d : e) : >> f ? (g ? h : i) : >> j; > > Better still (fewer confusing parentheses): > > a = > b ? > c ? d : e > : f ? > g ? h : i > : j; > >> Equivalent Lisp, for comparison: >> >> (setf a (cond (b (if c d e)) >> (f (if g h i)) >> (t j))) > > You can’t avoid the parentheses, but this, too, can be improved: > > (setf a > (cond > (b > (if c d e) > ) > (f > (if g h i) > ) > (t > j > ) > ) ; cond > ) Sorry, but that is not an improvement but rather an abomination. 'Andreas -- ceterum censeo redmondinem esse delendam