Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Put no trust in cryptic comments.


devel / comp.unix.programmer / Re: Command Languages Versus Programming Languages

SubjectAuthor
* Command Languages Versus Programming LanguagesLawrence D'Oliveiro
+- Re: Command Languages Versus Programming Languagescandycanearter07
+* Re: Command Languages Versus Programming LanguagesMuttley
|+- Re: Command Languages Versus Programming LanguagesJosef Möllers
|+* Re: Command Languages Versus Programming LanguagesRichard Kettlewell
||`* Re: Command Languages Versus Programming LanguagesMuttley
|| `* Re: Command Languages Versus Programming LanguagesKaz Kylheku
||  `* Re: Command Languages Versus Programming LanguagesMuttley
||   `* Re: Command Languages Versus Programming LanguagesKaz Kylheku
||    `* Re: Command Languages Versus Programming LanguagesMuttley
||     +- Re: Command Languages Versus Programming LanguagesJanis Papanagnou
||     +* Re: Command Languages Versus Programming LanguagesKaz Kylheku
||     |`- Re: Command Languages Versus Programming LanguagesMuttley
||     `- Re: Command Languages Versus Programming LanguagesScott Lurndal
|`* Re: Command Languages Versus Programming LanguagesJohn Ames
| +* Re: Command Languages Versus Programming LanguagesMuttley
| |+- Re: Command Languages Versus Programming LanguagesJohn Ames
| |+* Re: Command Languages Versus Programming LanguagesKaz Kylheku
| ||`* Re: Command Languages Versus Programming LanguagesMuttley
| || +* Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |+* Re: Command Languages Versus Programming LanguagesDavid W. Hodgins
| || ||+* Re: Command Languages Versus Programming LanguagesJohanne Fairchild
| || |||`- Re: Command Languages Versus Programming LanguagesDavid W. Hodgins
| || ||`- Re: Command Languages Versus Programming LanguagesJanis Papanagnou
| || |`* Re: Command Languages Versus Programming LanguagesMuttley
| || | `* Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |  `* Re: Command Languages Versus Programming LanguagesMuttley
| || |   +* Re: Command Languages Versus Programming LanguagesJohanne Fairchild
| || |   |`* Re: Command Languages Versus Programming LanguagesMuttley
| || |   | +- Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   | `* Re: Command Languages Versus Programming LanguagesJohanne Fairchild
| || |   |  +* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |  |+* Re: Command Languages Versus Programming LanguagesKeith Thompson
| || |   |  ||`- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |  |+* Re: Command Languages Versus Programming LanguagesJames Kuyper
| || |   |  ||`- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |  |`* Re: Command Languages Versus Programming LanguagesJohanne Fairchild
| || |   |  | +* Re: Command Languages Versus Programming LanguagesKenny McCormack
| || |   |  | |`* Re: Command Languages Versus Programming LanguagesScott Lurndal
| || |   |  | | +- Re: Command Languages Versus Programming LanguagesDmitry A. Kazakov
| || |   |  | | +* Too much? (Was: Command Languages Versus Programming Languages)Kenny McCormack
| || |   |  | | |+* Re: Too much? (Was: Command Languages Versus Programming Languages)Kaz Kylheku
| || |   |  | | ||`- Re: Too much? (Was: Command Languages Versus Programming Languages)Kenny McCormack
| || |   |  | | |`* Re: Too much? (Was: Command Languages Versus Programming Languages)David Brown
| || |   |  | | | +* Re: Too much? (Was: Command Languages Versus Programming Languages)James Kuyper
| || |   |  | | | |`- Football (Was: Too much? (Was: Command Languages Versus Programming Languages))Kenny McCormack
| || |   |  | | | `* Re: Too much? (Was: Command Languages Versus Programming Languages)Chris Elvidge
| || |   |  | | |  +- Re: Too much? (Was: Command Languages Versus Programming Languages)Muttley
| || |   |  | | |  `- Re: Too much? (Was: Command Languages Versus Programming Languages)David Brown
| || |   |  | | `- Re: Command Languages Versus Programming LanguagesJames Kuyper
| || |   |  | `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |  |  `- Re: Command Languages Versus Programming LanguagesJohanne Fairchild
| || |   |  `* Re: Command Languages Versus Programming LanguagesStefan Ram
| || |   |   +* Re: Command Languages Versus Programming LanguagesStefan Ram
| || |   |   |+* Re: Command Languages Versus Programming LanguagesStefan Ram
| || |   |   ||`* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   || `* Re: Command Languages Versus Programming LanguagesDavid Brown
| || |   |   ||  +- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   ||  +- Re: Command Languages Versus Programming LanguagesJohn Ames
| || |   |   ||  `* Re: Command Languages Versus Programming LanguagesKeith Thompson
| || |   |   ||   +* Re: Command Languages Versus Programming LanguagesRichard Kettlewell
| || |   |   ||   |+- Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |`* Re: Command Languages Versus Programming LanguagesStefan Ram
| || |   |   ||   | `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   ||   |  +* Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  |+* Re: Command Languages Versus Programming Languagescandycanearter07
| || |   |   ||   |  ||`* Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  || `- Re: Command Languages Versus Programming Languagescandycanearter07
| || |   |   ||   |  |`* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   ||   |  | `* Re: Command Languages Versus Programming LanguagesAlan Bawden
| || |   |   ||   |  |  +* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   ||   |  |  |`* Re: Command Languages Versus Programming LanguagesJohn Ames
| || |   |   ||   |  |  | `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   ||   |  |  |  +* Re: Command Languages Versus Programming LanguagesJohn Ames
| || |   |   ||   |  |  |  |`* Re: Command Languages Versus Programming LanguagesRichard Kettlewell
| || |   |   ||   |  |  |  | +* Re: Command Languages Versus Programming LanguagesJanis Papanagnou
| || |   |   ||   |  |  |  | |`- Re: Command Languages Versus Programming LanguagesRichard Kettlewell
| || |   |   ||   |  |  |  | `* Re: Command Languages Versus Programming LanguagesDavid Brown
| || |   |   ||   |  |  |  |  `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   ||   |  |  |  |   `* Re: Command Languages Versus Programming LanguagesDavid Brown
| || |   |   ||   |  |  |  |    `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   ||   |  |  |  |     `- Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   |   ||   |  |  |  `- Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   |   ||   |  |  +* Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   |   ||   |  |  |`* Re: Command Languages Versus Programming LanguagesDavid Brown
| || |   |   ||   |  |  | `- Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  |  +- Re: Command Languages Versus Programming Languagescandycanearter07
| || |   |   ||   |  |  `* Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  |   +* Re: Command Languages Versus Programming LanguagesAlan Bawden
| || |   |   ||   |  |   |`* Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  |   | `* Re: Command Languages Versus Programming LanguagesDavid Brown
| || |   |   ||   |  |   |  `* Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  |   |   +* Words to the wise (Was: Command Languages Versus Programming Languages)Kenny McCormack
| || |   |   ||   |  |   |   |`- Re: Words to the wise (Was: Command Languages Versus Programming Languages)Muttley
| || |   |   ||   |  |   |   `* Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   |   ||   |  |   |    +* Phrases that should be banned on Usenet (Was: Command Languages Versus ProgrammiKenny McCormack
| || |   |   ||   |  |   |    |`* Re: Phrases that should be banned on Usenet (Was: Command Languages Versus ProgrJanis Papanagnou
| || |   |   ||   |  |   |    | +- Re: Phrases that should be banned on Usenet (Was: Command Languages Versus ProgrD
| || |   |   ||   |  |   |    | `* Re: Phrases that should be banned on Usenet (Was: Command Languages Versus Progrcandycanearter07
| || |   |   ||   |  |   |    |  `* Re: Phrases that should be banned on Usenet (Was: Command Languages Versus ProgrJanis Papanagnou
| || |   |   ||   |  |   |    |   +- Re: Phrases that should be banned on Usenet (Was: Command Languages Versus Progrcandycanearter07
| || |   |   ||   |  |   |    |   `* Re: Phrases that should be banned on Usenet (Was: Command Languages Versus ProgrLawrence D'Oliveiro
| || |   |   ||   |  |   |    `* Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  |   +- [meta] Re: Command Languages Versus Programming LanguagesJanis Papanagnou
| || |   |   ||   |  |   `* Re: Command Languages Versus Programming LanguagesKeith Thompson
| || |   |   ||   |  `* Re: Command Languages Versus Programming LanguagesJanis Papanagnou
| || |   |   ||   `* Re: Command Languages Versus Programming LanguagesDavid Brown
| || |   |   |`- Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   |   `- Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   `- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || `- Re: Command Languages Versus Programming LanguagesAndreas Eder
| |+- Re: Command Languages Versus Programming LanguagesChristian Weisgerber
| |`* Re: Command Languages Versus Programming LanguagesDavid Brown
| `- Re: Command Languages Versus Programming LanguagesKaz Kylheku
+* Re: Command Languages Versus Programming LanguagesJohanne Fairchild
+* Re: Command Languages Versus Programming LanguagesDavid Brown
+* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
+* Re: Command Languages Versus Programming LanguagesDmitry A. Kazakov
`- Re: Command Languages Versus Programming LanguagesAndreas Kempe

Pages:12345678910111213
Re: Too much? (Was: Command Languages Versus Programming Languages)

<uun058$rg1q$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11645&group=comp.unix.programmer#11645

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Too much? (Was: Command Languages Versus Programming Languages)
Date: Thu, 4 Apr 2024 21:47:51 +0200
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uun058$rg1q$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87plv762zt.fsf@tudado.org>
<uuhkfp$3afj1$1@news.xmission.com> <UzYON.154262$TSTa.122307@fx47.iad>
<uuhp3m$3ahp1$1@news.xmission.com> <uuj11l$3pqbb$1@dont-email.me>
<uumb6s$maqq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 04 Apr 2024 19:47:52 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="120ac4c651a3755b57fb12ede9b881f4";
logging-data="901178"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Jow/uR+LbNHP+A0eJdPrL2n4ley/Dy5c="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:g0K1suKTzmPyCqER8Zi+b+vPsFo=
Content-Language: en-GB
In-Reply-To: <uumb6s$maqq$1@dont-email.me>
 by: David Brown - Thu, 4 Apr 2024 19:47 UTC

On 04/04/2024 15:50, Chris Elvidge wrote:
> On 03/04/2024 at 08:38, David Brown wrote:
>> One lottery winner managed this.  When he won about £160M in the
>> lottery, he bought his favourite football club (or "soccer club", for
>> those who come from a country where "football" doesn't involve feet or
>> round balls) and set it up as a trust owned by the club's fans.
>
> I do wish people would stop intimating that the US is the only place
> where Association Football (the football we play in the UK) is known as
> soccer. When I was at secondary school (back in the 1960's) "soccer
> practise" was a well know alternative to the term "football practise".
>

The term "soccer" is sometimes used in the UK, yes. It is most common
in schools or areas of the country where rugby (also occasionally known
as "Rugby Football") is popular.

But the term "football", unqualified, invariably means "soccer" - except
in the USA.

Re: Command Languages Versus Programming Languages

<uund4g$ugsb$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11646&group=comp.unix.programmer#11646

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Thu, 4 Apr 2024 23:29:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <uund4g$ugsb$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 04 Apr 2024 23:29:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f5e959706a1ab93774d71c78cd2d7e1b";
logging-data="1000331"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LkYj4QD5uLCPV8QK0TwHs"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:CHdoEjfb56vNZ4lg1Iw9EWmMhgY=
 by: Lawrence D'Oliv - Thu, 4 Apr 2024 23:29 UTC

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;

Re: Command Languages Versus Programming Languages

<uuofjh$19pfd$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11647&group=comp.unix.programmer#11647

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 5 Apr 2024 09:17:37 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <uuofjh$19pfd$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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>
Injection-Date: Fri, 05 Apr 2024 09:17:38 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ea34a2914be4a50473d0f8fb4079a58e";
logging-data="1369581"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qG5KP+fX8liV0KpjwjzT3"
Cancel-Lock: sha1:0M5pL6xi0+k4TURBnep7ku7BE/Q=
 by: Mutt...@dastardlyhq.com - Fri, 5 Apr 2024 09:17 UTC

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.

Re: Command Languages Versus Programming Languages

<uuorf2$1chok$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11648&group=comp.unix.programmer#11648

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycan...@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 5 Apr 2024 12:40:02 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 24
Message-ID: <uuorf2$1chok$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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>
Injection-Date: Fri, 05 Apr 2024 12:40:03 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b2a32ba664ffdf88935a4461082c5c81";
logging-data="1459988"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wnDq6+fqK5JmRtjYuep35OVz0/rjgN8NlRbPbYKMxZA=="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:sALibexy+gBaPUqHJTMraG79mCc=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
 by: candycanearter07 - Fri, 5 Apr 2024 12:40 UTC

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

Re: Command Languages Versus Programming Languages

<uup47r$1elvc$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11649&group=comp.unix.programmer#11649

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 5 Apr 2024 15:09:47 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <uup47r$1elvc$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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>
<uuorf2$1chok$1@dont-email.me>
Injection-Date: Fri, 05 Apr 2024 15:09:47 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ea34a2914be4a50473d0f8fb4079a58e";
logging-data="1529836"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gbDXX1EEAbLZx3bLj5xPX"
Cancel-Lock: sha1:FLACI9DsSdGxBOQFUHU2i2fJRq8=
 by: Mutt...@dastardlyhq.com - Fri, 5 Apr 2024 15:09 UTC

On Fri, 5 Apr 2024 12:40:02 -0000 (UTC)
candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> wrote:
>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.

Indeed. It might not look as "l33t", but with modern compilers it'll end
up as the same assembler anyway.

Re: Command Languages Versus Programming Languages

<uup8ul$1fr2t$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11650&group=comp.unix.programmer#11650

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 5 Apr 2024 18:30:12 +0200
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <uup8ul$1fr2t$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 05 Apr 2024 16:30:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7bb916d2050ea2724cd5f30d6d12a41b";
logging-data="1567837"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19D9g6Ifm/ECy8od+SQ56B4"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:Goxp2Mhh1ey92dnaV47ld37BqAY=
In-Reply-To: <uund4g$ugsb$1@dont-email.me>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Fri, 5 Apr 2024 16:30 UTC

On 05.04.2024 01:29, Lawrence D'Oliveiro 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;
>

Indentation generally helps. In above code (in my book) it's not
that clear [from the indentation], e.g. where the last ':' 'else'
belongs to. So I'd have lined the colons up with the respective
'?'. (YMMV.)

Not all languages differentiate (per syntax) a conditional command
from a conditional expression. Here are the two forms supported by
Algol for both, statements and expressions (here the examples are
both depicted for expressions only)

a :=
( b | ( c | d | e )
| ( f | ( g | h | i )
| j ) );

The parenthesis are not used for grouping, but are the alternative
form for IF/THEN/ELSE/FI

a := IF b
THEN
IF c THEN d ELSE e FI
ELSE
IF f THEN
IF g THEN h ELSE i FI
ELSE j FI
FI

Pick your choice depending on the case (or taste).

Janis

Re: Command Languages Versus Programming Languages

<indentation-20240405183703@ram.dialup.fu-berlin.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11651&group=comp.unix.programmer#11651

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram...@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: 5 Apr 2024 17:37:52 GMT
Organization: Stefan Ram
Lines: 26
Expires: 1 Feb 2025 11:59:58 GMT
Message-ID: <indentation-20240405183703@ram.dialup.fu-berlin.de>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me> <20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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> <uup8ul$1fr2t$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de vXjtoikWKm8wzHnU2zvKCQ7vjSy2Q9hSiKE5YpVhQoTa3s
Cancel-Lock: sha1:MrYECv3UxwpioTtPeqT0ES0AMyg= sha256:PX9LQSXG5Pxxng9fDZNxNcL+pfDlNUWWdWMeoG1vR48=
X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
 by: Stefan Ram - Fri, 5 Apr 2024 17:37 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote or quoted:
>On 05.04.2024 01:29, Lawrence D'Oliveiro wrote:
>>This is where indentation helps. E.g.
>> a =
>> b ?
>> c ? d : e
>> : f ?
>> g ? h : i
>> : j;
>>
>Indentation generally helps.

Let me give it a try to find how I would indent that!

b?
c? d: e:
f?
g? h: i:
j;

>The parenthesis are not used for grouping, but are the alternative
>form for IF/THEN/ELSE/FI

It's funny how the discussion oscillates between
"too many parentheses" (LISP code) and "not enough parentheses"
("let me add some parens to improve readability").

Re: Command Languages Versus Programming Languages

<20240405132341.870@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11652&group=comp.unix.programmer#11652

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 5 Apr 2024 20:47:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 153
Message-ID: <20240405132341.870@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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>
<uup8ul$1fr2t$1@dont-email.me>
Injection-Date: Fri, 05 Apr 2024 20:47:41 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ceb148ea878d94e466846d7273339ae5";
logging-data="1688663"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19h5aNcfipgg/nNbG1iiZouV9NRNS7NQgA="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:Jbr6ZwqBJjJkL9PdaQTyMCAj1oM=
 by: Kaz Kylheku - Fri, 5 Apr 2024 20:47 UTC

On 2024-04-05, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
> On 05.04.2024 01:29, Lawrence D'Oliveiro 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;
>>
>
> Indentation generally helps. In above code (in my book) it's not
> that clear [from the indentation], e.g. where the last ':' 'else'
> belongs to. So I'd have lined the colons up with the respective
> '?'. (YMMV.)
>
> Not all languages differentiate (per syntax) a conditional command
> from a conditional expression. Here are the two forms supported by
> Algol for both, statements and expressions (here the examples are
> both depicted for expressions only)
>
> a :=
> ( b | ( c | d | e )
> | ( f | ( g | h | i )
> | j ) );
>
> The parenthesis are not used for grouping, but are the alternative
> form for IF/THEN/ELSE/FI
>
> a := IF b
> THEN
> IF c THEN d ELSE e FI
> ELSE
> IF f THEN
> IF g THEN h ELSE i FI
> ELSE j FI
> FI
>
> Pick your choice depending on the case (or taste).

#define XCAT(A, B) A ## B
#define CAT(A, B) XCAT(A, B)

#define IF(A, B, C) ((A) ? (B) : (C))

#define COND_2(cond, then, ...) IF(cond, then, 0)
#define COND_4(cond, then, ...) IF(cond, then, COND_2(__VA_ARGS__))
#define COND_6(cond, then, ...) IF(cond, then, COND_4(__VA_ARGS__))
#define COND_8(cond, then, ...) IF(cond, then, COND_6(__VA_ARGS__))

#define COND_1(...) {syntax error}
#define COND_3(...) {syntax error}
#define COND_5(...) {syntax error}
#define COND_7(...) {syntax error}

#define COUNT_ARGS(...) COUNT_ARGS_IMPL(__VA_ARGS__, 8, 7, 6, 5, 4, 3, 2, 1)
#define COUNT_ARGS_IMPL(_1, _2, _3, _4, _5, _6, _7, _8, N, ...) N

#define COND(...) CAT(COND_, COUNT_ARGS(__VA_ARGS__))(__VA_ARGS__)

Now we can do:

COND(b, ...,
f, ...
1, j)

filling in the ...:

COND(b, IF(c, d, e),
f, IF(g, h, i),
1, j)

The GNU preprocessor gives me this:

((b) ? (((c) ? (d) : (e))) : (((f) ? (((g) ? (h) : (i))) : (((1) ? (j) : (0))))))

which looks correct.

The code is readable now, and importantly, my editor can format it. If I
start adding line breaks, it's indented right. If I turn it into this:

COND(b, IF(c, d, e),
f, IF(g, h, i),
1, j)

then highlight it in Vim and hit =, it gets put back the way it was.

If I add line breaks into the IFs, they get automatically indented
right, just using Vim's support for basic C formatting of macro/function
calls:

cond(b, IF(c,
d,
e),
f, IF(g,
h,
i),
1, j)

Compared to wrestling with five ways of formatting the the ill-conceived
?: syntax, it's a complete no brainer.

Here is a version where the cond pairs have to be parenthesized.
We can lose the even/odd argument count handling, and might as well
extend to up to 8 clauses:

#define IF(A, B, C) ((A) ? (B) : (C))

#define XCAT(A, B) A ## B
#define CAT(A, B) XCAT(A, B)

#define COND_PAIR(pair, rest) IF(COND_COND pair, COND_THEN pair, rest)
#define COND_COND(cond, then) cond
#define COND_THEN(cond, then) then
#define COND_1(pair, ...) COND_PAIR(pair, 0)
#define COND_2(pair, ...) COND_PAIR(pair, COND_1(__VA_ARGS__))
#define COND_3(pair, ...) COND_PAIR(pair, COND_2(__VA_ARGS__))
#define COND_4(pair, ...) COND_PAIR(pair, COND_3(__VA_ARGS__))
#define COND_5(pair, ...) COND_PAIR(pair, COND_4(__VA_ARGS__))
#define COND_6(pair, ...) COND_PAIR(pair, COND_5(__VA_ARGS__))
#define COND_7(pair, ...) COND_PAIR(pair, COND_6(__VA_ARGS__))
#define COND_8(pair, ...) COND_PAIR(pair, COND_7(__VA_ARGS__))

#define COUNT_ARGS(...) COUNT_ARGS_IMPL(__VA_ARGS__, 8, 7, 6, 5, 4, 3, 2, 1)
#define COUNT_ARGS_IMPL(_1, _2, _3, _4, _5, _6, _7, _8, N, ...) N

#define COND(...) CAT(COND_, COUNT_ARGS(__VA_ARGS__))(__VA_ARGS__)

COND((b, IF(c,
d,
d)),
(f, IF(g,
h,
i)),
(1, j))

The expansion is still

((b) ? (((c) ? (d) : (d))) : (((f) ? (((g) ? (h) : (i))) : (((1) ? (j) : (0))))))

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: Command Languages Versus Programming Languages

<uuq0a3$1lcgf$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11653&group=comp.unix.programmer#11653

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 5 Apr 2024 23:08:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <uuq0a3$1lcgf$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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>
<uup8ul$1fr2t$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 05 Apr 2024 23:08:52 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9c4b8ade0cfa29f0e8cec442ac1d5e3b";
logging-data="1749519"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cBPfFD9CfB0U5F/ZD5TXe"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:v2I4tOf8nuRs9qXRaGo9m3WwbBc=
 by: Lawrence D'Oliv - Fri, 5 Apr 2024 23:08 UTC

On Fri, 5 Apr 2024 18:30:12 +0200, Janis Papanagnou wrote:

> Here are the two forms supported by Algol ...

Just a note, that’s Algol 68. In my time, “Algol” used unqualified was
understood to refer to Algol 60.

Re: Command Languages Versus Programming Languages

<uuq0fp$1lcgf$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11654&group=comp.unix.programmer#11654

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 5 Apr 2024 23:11:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <uuq0fp$1lcgf$2@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 05 Apr 2024 23:11:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9c4b8ade0cfa29f0e8cec442ac1d5e3b";
logging-data="1749519"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++fhwM6SA2S1YvHr+auYHn"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:cI9AZE4eFq2Wf9/0Jqnfwc08U5Y=
 by: Lawrence D'Oliv - Fri, 5 Apr 2024 23:11 UTC

On Fri, 5 Apr 2024 09:17:37 -0000 (UTC), Muttley wrote:

> On Thu, 4 Apr 2024 23:29:21 -0000 (UTC) Lawrence D'Oliveiro
> <ldo@nz.invalid> wrote:
>>
>>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.

a=(b?(c?d:e):(f?(g?h:i):j));

The improvement speaks for itself.

Re: Command Languages Versus Programming Languages

<86frvzo01i.fsf@williamsburg.bawden.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11655&group=comp.unix.programmer#11655

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!bawden.eternal-september.org!.POSTED!not-for-mail
From: ala...@csail.mit.edu (Alan Bawden)
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=
 by: Alan Bawden - Fri, 5 Apr 2024 23:35 UTC

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

Re: Command Languages Versus Programming Languages

<uuq4q9$1mbbf$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11656&group=comp.unix.programmer#11656

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
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=
 by: Lawrence D'Oliv - Sat, 6 Apr 2024 00:25 UTC

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.

Re: Command Languages Versus Programming Languages

<20240405175329.336@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11657&group=comp.unix.programmer#11657

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 6 Apr 2024 01:01:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <20240405175329.336@kylheku.com>
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>
Injection-Date: Sat, 06 Apr 2024 01:01:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="087afdf11801ba099c0d8e1d4262b803";
logging-data="1792348"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/OUv9+CJ7nbc+zcBYJ2TBi3Tvtft2nPSM="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:xF8036ALwAa319a1i+/D/WiZosc=
 by: Kaz Kylheku - Sat, 6 Apr 2024 01:01 UTC

On 2024-04-05, 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
> enough parentheses to make the structure clear.

It looks good, undeniably.

However, I cannot tell at a glance whether or not the nice appearance
isn't telling me some kind of lie. That's an inherent problem with
the ternary operator.

I have to remember that = has lower precedence than ?:. But, ==
has higher precedence. So this careless edit makes it wrong,
even though it still looks just as nice:

a == b ? (c ? d : e) :
f ? (g ? h : i) :
j;

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: Command Languages Versus Programming Languages

<uuq7dd$1mrp3$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11658&group=comp.unix.programmer#11658

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycan...@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 6 Apr 2024 01:10:05 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 35
Message-ID: <uuq7dd$1mrp3$3@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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> <uuorf2$1chok$1@dont-email.me>
<uup47r$1elvc$1@dont-email.me>
Injection-Date: Sat, 06 Apr 2024 01:10:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="bad612f9278d4822db42e3d039f9825f";
logging-data="1797923"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qQzpCd8s1kmtbBDkkppJzbvm5d6rpPIQMWkmla1rRug=="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:MSR8R/4O1wRcDv/MJchpibtPmMA=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
 by: candycanearter07 - Sat, 6 Apr 2024 01:10 UTC

Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote at 15:09 this Friday (GMT):
> On Fri, 5 Apr 2024 12:40:02 -0000 (UTC)
> candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> wrote:
>>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.
>
> Indeed. It might not look as "l33t", but with modern compilers it'll end
> up as the same assembler anyway.

Yeah. Not everything needs to be a hyper optimized single line
statement.
--
user <candycane> is generated from /dev/urandom

Re: Command Languages Versus Programming Languages

<uuq7de$1mrp3$4@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11659&group=comp.unix.programmer#11659

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycan...@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 6 Apr 2024 01:10:06 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 32
Message-ID: <uuq7de$1mrp3$4@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>
Injection-Date: Sat, 06 Apr 2024 01:10:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="bad612f9278d4822db42e3d039f9825f";
logging-data="1797923"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dvOtqh2II5BLU8mRKlM0QwtjE3ivpo9KsDP4TqIh2RA=="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:gB+OGT/etEKgCxM4pw3OgN93sH0=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
 by: candycanearter07 - Sat, 6 Apr 2024 01:10 UTC

Alan Bawden <alan@csail.mit.edu> wrote at 23:35 this Friday (GMT):
> 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;
>
v (she?)
> I.e., she would allow herself to use spaces and newlines, and just
> enough parentheses to make the structure clear.
>
> - Alan

Yeah, a bit of space for the code to breathe goes a long way.
--
user <candycane> is generated from /dev/urandom

Re: Command Languages Versus Programming Languages

<uur2s5$2064m$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11660&group=comp.unix.programmer#11660

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 6 Apr 2024 08:58:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <uur2s5$2064m$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me> <20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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> <uup8ul$1fr2t$1@dont-email.me>
<indentation-20240405183703@ram.dialup.fu-berlin.de>
Injection-Date: Sat, 06 Apr 2024 08:58:45 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d81f18974ff1c6de54f7711b915d74e6";
logging-data="2103446"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19TxB/9r7cfyHT7662YZHnu"
Cancel-Lock: sha1:98hNte1+tQP/IPCYowdAogplabw=
 by: Mutt...@dastardlyhq.com - Sat, 6 Apr 2024 08:58 UTC

On 5 Apr 2024 17:37:52 GMT
ram@zedat.fu-berlin.de (Stefan Ram) wrote:
>Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote or quoted:
>>On 05.04.2024 01:29, Lawrence D'Oliveiro wrote:
>>>This is where indentation helps. E.g.
>>> a =
>>> b ?
>>> c ? d : e
>>> : f ?
>>> g ? h : i
>>> : j;
>>>
>>Indentation generally helps.
>
> Let me give it a try to find how I would indent that!
>
>b?
> c? d: e:
> f?
> g? h: i:
> j;
>
>>The parenthesis are not used for grouping, but are the alternative
>>form for IF/THEN/ELSE/FI
>
> It's funny how the discussion oscillates between
> "too many parentheses" (LISP code) and "not enough parentheses"
> ("let me add some parens to improve readability").

Lisp overloads them as block markers which simply makes the code more
confusing, not less.

Re: Command Languages Versus Programming Languages

<uur2us$207b3$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11661&group=comp.unix.programmer#11661

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 6 Apr 2024 09:00:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <uur2us$207b3$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>
Injection-Date: Sat, 06 Apr 2024 09:00:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d81f18974ff1c6de54f7711b915d74e6";
logging-data="2104675"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Lx65rTX/VJO7lBwO7Jscl"
Cancel-Lock: sha1:Ylt7vE3hvoNEO4HNHxR+xxemhXY=
 by: Mutt...@dastardlyhq.com - Sat, 6 Apr 2024 09:00 UTC

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.

Re: Command Languages Versus Programming Languages

<uurjjf$2409m$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11662&group=comp.unix.programmer#11662

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 6 Apr 2024 15:44:13 +0200
Organization: A noiseless patient Spider
Lines: 75
Message-ID: <uurjjf$2409m$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> <20240405175329.336@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 06 Apr 2024 13:44:15 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0149db67b3dde4585d7702654d770ca9";
logging-data="2228534"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hYKSutBft+ST/qLIq7/uN3gkiLzyVtRs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:R+6Ys7H7Fq+37FD0EHLNOXvHuGM=
Content-Language: en-GB
In-Reply-To: <20240405175329.336@kylheku.com>
 by: David Brown - Sat, 6 Apr 2024 13:44 UTC

On 06/04/2024 03:01, Kaz Kylheku wrote:
> On 2024-04-05, 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
>> enough parentheses to make the structure clear.
>
> It looks good, undeniably.
>
> However, I cannot tell at a glance whether or not the nice appearance
> isn't telling me some kind of lie. That's an inherent problem with
> the ternary operator.

That's a key point - and it is not just with the ternary operator, but a
general issue. Good spacing, indentation, newlines and layout make code
easier to read. But it is vital that there is never any doubt that the
layout matches the meaning of the code. If not, then you might be sure
what the programmer meant dues to the layout, but you are not sure that
the compiler sees it the same way. After all, this looks neat and clear
too :

a =
b & c +
d & e +
f & g

But the language viewpoint (assuming it is in C, or a language with
similar precedences) and the code appearance are very different.

Parentheses help, until there are too many to be easily tracked by the
reader. Splitting the expression into parts, adding new local
variables, using separate statements, making new helper functions -
these are all ways to improve the code, and have no efficiency cost with
modern tools.

A lot of people think the layout of code should make the programmer's
intentions clear, and make it easy to see what the code does. That's
true, but it is not enough. Code layout should also make it easy to see
that the code does what the programmer intended. It should be easy for
a maintainer to modify it without introducing errors. It should also be
hard for a reader to misinterpret it (which is not the same as saying it
should be easy to interpret correctly). It should be hard for a
maintainer to make mistakes. It should be easy to spot any mistakes
that get made.

>
> I have to remember that = has lower precedence than ?:. But, ==
> has higher precedence. So this careless edit makes it wrong,
> even though it still looks just as nice:
>
> a == b ? (c ? d : e) :
> f ? (g ? h : i) :
> j;
>

Re: Command Languages Versus Programming Languages

<uuro8t$2544n$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11663&group=comp.unix.programmer#11663

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 6 Apr 2024 15:03:57 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <uuro8t$2544n$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> <20240405175329.336@kylheku.com>
<uurjjf$2409m$1@dont-email.me>
Injection-Date: Sat, 06 Apr 2024 15:03:58 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d81f18974ff1c6de54f7711b915d74e6";
logging-data="2265239"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Ej5hhBXBievpVrkB97qks"
Cancel-Lock: sha1:HM+jevOuEQAM352TO3rulcYiOFQ=
 by: Mutt...@dastardlyhq.com - Sat, 6 Apr 2024 15:03 UTC

On Sat, 6 Apr 2024 15:44:13 +0200
David Brown <david.brown@hesbynett.no> wrote:
>A lot of people think the layout of code should make the programmer's
>intentions clear, and make it easy to see what the code does. That's

Unfortunately IME another lot (usually young) seem to think that the more
complicated their make their code the more it will impress their peers and/or
boss. This seems to be a particular problem with C++ as its current overspecced
and overcomplicated syntax allows you to write code that would make a Perl dev
envious.

Re: Command Languages Versus Programming Languages

<uuruf3$26jhs$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11664&group=comp.unix.programmer#11664

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 6 Apr 2024 18:49:38 +0200
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <uuruf3$26jhs$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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>
<uup8ul$1fr2t$1@dont-email.me>
<indentation-20240405183703@ram.dialup.fu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 06 Apr 2024 16:49:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="52a4aefcf2d0489e676411316b895a3f";
logging-data="2313788"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18A9tUrgstIXc+G3ldhheye"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:ir0lFz0uDdfKyQukcbPJpQoTebY=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <indentation-20240405183703@ram.dialup.fu-berlin.de>
 by: Janis Papanagnou - Sat, 6 Apr 2024 16:49 UTC

On 05.04.2024 19:37, Stefan Ram wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote or quoted:
>>
>> [ Algol syntax variants, keywords vs. parenthesis ("meek form" ?) ]
>
>> The parenthesis are not used for grouping, but are the alternative
>> form for IF/THEN/ELSE/FI
>
> It's funny how the discussion oscillates between
> "too many parentheses" (LISP code) and "not enough parentheses"
> ("let me add some parens to improve readability").

We should distinguish the various aspects posted over time.
Parenthesis used...
- to group sub-expressions (to make precedence clear or
fix some precedence inconsistency in the language)
=> that's IMO a Good Thing for non-trivial cases
- as necessary syntax of the language (like inherently
in Lisp, or in C's control structures)
=> I don't like them, but you have no choice here
(but changing the language, where/if possible)
- as an alternative syntactic form of conditionals
(as in Algol, where you can choose the syntax)
=> Personally I like the verbose keywords, but in
case of conditional expressions the concise form
with parenthesis might be better readable (though
this can be different in complex cases as posted)
Note that in Algol not only the 'IF's can be written
in that parenthesis syntax form, you can also use
the '(' and ')' instead of the 'BEGIN'/'END' keywords.

It boils down to: to each his own, and, use what's most
appropriate depending on context.

Janis

Re: Command Languages Versus Programming Languages

<uuruuc$26nd1$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11665&group=comp.unix.programmer#11665

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 6 Apr 2024 18:57:47 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <uuruuc$26nd1$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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>
<uup8ul$1fr2t$1@dont-email.me> <uuq0a3$1lcgf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 06 Apr 2024 16:57:49 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="52a4aefcf2d0489e676411316b895a3f";
logging-data="2317729"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AWJoeFi3VpCmqlETuXTVK"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:6onrsF9bSALrwITomnITQ6+BUWE=
In-Reply-To: <uuq0a3$1lcgf$1@dont-email.me>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Sat, 6 Apr 2024 16:57 UTC

On 06.04.2024 01:08, Lawrence D'Oliveiro wrote:
> On Fri, 5 Apr 2024 18:30:12 +0200, Janis Papanagnou wrote:
>
>> Here are the two forms supported by Algol ...
>
> Just a note, that’s Algol 68. In my time, “Algol” used unqualified was
> understood to refer to Algol 60.

This seems to have been the case before Algol 68 appeared.
(I'm not sure this matches with what you call "in my time".)

I named it always explicitly as "Algol 60" and "Algol 68".
But at some instance of time I read somewhere that "Algol"
would "now" refer to Algol 68, so I changed my habit.

But since your post shows that this may not (not yet?) be
common usage I'll be more specific in future. - Thanks for
the hint!

Janis

Re: Command Languages Versus Programming Languages

<uus4fe$27r8r$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11666&group=comp.unix.programmer#11666

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anw...@cuboid.co.uk (Andy Walker)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 6 Apr 2024 19:32:14 +0100
Organization: Not very much
Lines: 27
Message-ID: <uus4fe$27r8r$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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>
<uup8ul$1fr2t$1@dont-email.me> <uuq0a3$1lcgf$1@dont-email.me>
<uuruuc$26nd1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 06 Apr 2024 18:32:14 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d7c0be6d3130a3b5dc15e27c527a3fce";
logging-data="2354459"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WxDavglAphgcpI3Oo/GnT"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fudfTDbky1Qf+fCHmgvxBkEE4xk=
In-Reply-To: <uuruuc$26nd1$1@dont-email.me>
Content-Language: en-GB
 by: Andy Walker - Sat, 6 Apr 2024 18:32 UTC

On 06/04/2024 17:57, Janis Papanagnou wrote:
> I named it always explicitly as "Algol 60" and "Algol 68".
> But at some instance of time I read somewhere that "Algol"
> would "now" refer to Algol 68, so I changed my habit.

Quite right. Algol 60 died, for all practical purposes,
half a century ago. Algol 68 may be a niche interest, but it is
still a nice language, and its [dwindling] band of adherents and
practitioners still use it and prefer it to C and other more
recent languages.

> But since [LD'O's] post shows that this may not (not yet?) be
> common usage I'll be more specific in future. - Thanks for
> the hint!

For how long? Does anyone still think that an unadorned
"Unix" must refer to 6th Edition [or earlier], "C" to K&R, "Fortran"
to Fortran IV, and so on? Clearly, there /are/ occasions when it is
necessary to specify which version of a language/OS/computer/... is
being referred to, and there is often a change-over period of a few
years when an older version is still sufficiently current. But fifty
years is surely long enough to get used to the newer version!

--
Andy Walker, Nottingham.
Andy's music pages: www.cuboid.me.uk/andy/Music
Composer of the day: www.cuboid.me.uk/andy/Music/Composers/Godfrey

Re: Command Languages Versus Programming Languages

<uusgba$2ao2m$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11667&group=comp.unix.programmer#11667

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 6 Apr 2024 23:54:50 +0200
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <uusgba$2ao2m$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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>
<uup8ul$1fr2t$1@dont-email.me> <uuq0a3$1lcgf$1@dont-email.me>
<uuruuc$26nd1$1@dont-email.me> <uus4fe$27r8r$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 06 Apr 2024 21:54:51 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b9d27208b26a58a902ab8e3699180997";
logging-data="2449494"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18PKG/i0x50VU9qAeRHxJnR"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:fEQkHZ+7PB+udOndWswaa1Vl3Pc=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <uus4fe$27r8r$1@dont-email.me>
 by: Janis Papanagnou - Sat, 6 Apr 2024 21:54 UTC

On 06.04.2024 20:32, Andy Walker wrote:
> On 06/04/2024 17:57, Janis Papanagnou wrote:
>> I named it always explicitly as "Algol 60" and "Algol 68".
>> But at some instance of time I read somewhere that "Algol"
>> would "now" refer to Algol 68, so I changed my habit.
>
> Quite right. Algol 60 died, for all practical purposes,
> half a century ago. Algol 68 may be a niche interest, but it is
> still a nice language, and its [dwindling] band of adherents and
> practitioners still use it and prefer it to C and other more
> recent languages.

I think it's a not only formally outstanding language; despite I've
never used it professionally since my first contact with it in the
early 1980's. (Though I still have a compiler on my private box to
play with it.)

>
>> But since [LD'O's] post shows that this may not (not yet?) be
>> common usage I'll be more specific in future. - Thanks for
>> the hint!
>
> For how long? Does anyone still think that an unadorned
> "Unix" must refer to 6th Edition [or earlier], "C" to K&R, "Fortran"
> to Fortran IV, and so on? Clearly, there /are/ occasions when it is
> necessary to specify which version of a language/OS/computer/... is
> being referred to, and there is often a change-over period of a few
> years when an older version is still sufficiently current. But fifty
> years is surely long enough to get used to the newer version!

Yes. - What I didn't know was whether that generic "Algol" naming
convention was already made around 1968 or maybe only much later.

But, WRT Algol 60 vs. Algol 68, these are quite different languages;
I wouldn't call the latter a new version. While some basic abstract
concepts from Algol 60 have certainly been considered in Algol 68
the whole design and specification process was done anew in Algol 68.
(The van Wijngaarden grammar also was some fundamental new approach.)
These languages can hardly be seen as "versions" of the same language.

Algol 60, OTOH, also had an own history and continued use after 1968;
to my knowledge it had been used in numerical mathematics and it was
(while per se quite terse a language) the base of Simula 67, an
extremely powerful language ahead of time (still).

But Algol 60, Simula, and also Algol 68 are all meaningless today, I
(sadly) dare to say. Maybe more than of "niche interest"? Can't tell.
Back these days they certainly were not hyped (as languages nowadays
are as part of the inventor's "marketing" activities). There's papers
existing that try to explain the/possible reasons for their fail to
become established.

Janis

Re: Command Languages Versus Programming Languages

<87il0ugn7b.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11668&group=comp.unix.programmer#11668

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 06 Apr 2024 15:07:04 -0700
Organization: None to speak of
Lines: 29
Message-ID: <87il0ugn7b.fsf@nosuchdomain.example.com>
References: <uu54la$3su5b$6@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> <uup8ul$1fr2t$1@dont-email.me>
<uuq0a3$1lcgf$1@dont-email.me> <uuruuc$26nd1$1@dont-email.me>
<uus4fe$27r8r$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 06 Apr 2024 22:07:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0efa4b53af11f7d4b5690e9314ba952a";
logging-data="2446187"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gtjitVo8k4XW5diVwZDil"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:0CTquprkwiA/W1bYnMfTM5/nK/0=
sha1:Hfa0JSMQ8dAFOE5xiI34k8te0+Y=
 by: Keith Thompson - Sat, 6 Apr 2024 22:07 UTC

Andy Walker <anw@cuboid.co.uk> writes:
> On 06/04/2024 17:57, Janis Papanagnou wrote:
>> I named it always explicitly as "Algol 60" and "Algol 68".
>> But at some instance of time I read somewhere that "Algol"
>> would "now" refer to Algol 68, so I changed my habit.

That doesn't match my experience.

> Quite right. Algol 60 died, for all practical purposes,
> half a century ago. Algol 68 may be a niche interest, but it is
> still a nice language, and its [dwindling] band of adherents and
> practitioners still use it and prefer it to C and other more
> recent languages.

I've never heard "Algol" by itself used to refer to Algol 68, which had
enough changes to be essentially a different language, and one which
didn't really replace Algol 60 (though it was clearly intended to).

<https://en.wikipedia.org/wiki/ALGOL> agrees.

The relative popularity of Algol 60 vs. 68 doesn't necessarily change
what "Algol" means.

[...]

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: Command Languages Versus Programming Languages

<uusk09$2b992$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11669&group=comp.unix.programmer#11669

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 6 Apr 2024 22:57:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <uusk09$2b992$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@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>
<uup8ul$1fr2t$1@dont-email.me> <uuq0a3$1lcgf$1@dont-email.me>
<uuruuc$26nd1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 06 Apr 2024 22:57:14 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="edc206e7c881f15813a37489a3e0be36";
logging-data="2467106"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VfZGWrR7zvSBcG40b3nxV"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:+F9zwA8oYJ3BUDCKN+XFpEY4MYg=
 by: Lawrence D'Oliv - Sat, 6 Apr 2024 22:57 UTC

On Sat, 6 Apr 2024 18:57:47 +0200, Janis Papanagnou wrote:

> I named it always explicitly as "Algol 60" and "Algol 68". But at some
> instance of time I read somewhere that "Algol" would "now" refer to
> Algol 68, so I changed my habit.

Sure, Algol 60 is way beyond a museum piece by now. But remember, that was
the one that spawned a great number of offshoots, namely the “Algol-like”
language family--or really, superfamily. That included Pascal and its own
offshoots.

Algol 68 was a bit less influential in terms of language features (I think
C “int”, “char”, “struct” and “union”, and the “long” and “short”
qualifiers came from there, and csh “if ... fi” as well), but it did seem
to introduce a bunch of new terminology, some of which caught on, others
did not. See how many you can spot:

* “Elaboration” for the process of executing a program (including possibly
transforming from source form to an executable form)
* “Transput” instead of “input/output”
* “Heap” for an area in which memory may be dynamically allocated and
freed in no particular order
* “Overloading” for multiple context-dependent definitions of an operator
* “Name” instead of “pointer” or “address”
* “Mode” instead of “data type”
* “Coercion” for a type conversion
* “Cast” for an explicit type conversion
* “Void” for a construct yielding no value
* “Dereferencing” for following a pointer
* “Slice” for a subarray of an array
* “Pragmat” for compiler directive (I think “pragma” is more common
nowadays.)


devel / comp.unix.programmer / Re: Command Languages Versus Programming Languages

Pages:12345678910111213
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor