Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

BYTE editors are people who separate the wheat from the chaff, and then carefully print the chaff.


devel / comp.lang.misc / 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

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

<uuhp3m$3ahp1$1@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2313&group=comp.lang.misc#2313

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!news.niel.me!tncsrv06.tnetconsulting.net!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Too much? (Was: Command Languages Versus Programming Languages)
Date: Tue, 2 Apr 2024 20:16:54 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uuhp3m$3ahp1$1@news.xmission.com>
References: <uu54la$3su5b$6@dont-email.me> <87plv762zt.fsf@tudado.org> <uuhkfp$3afj1$1@news.xmission.com> <UzYON.154262$TSTa.122307@fx47.iad>
Injection-Date: Tue, 2 Apr 2024 20:16:54 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3491617"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Tue, 2 Apr 2024 20:16 UTC

In article <UzYON.154262$TSTa.122307@fx47.iad>,
Scott Lurndal <slp53@pacbell.net> wrote:
....
>>By definition. Because the definition of "too much" implies having crossed
>>into the zone of being a bad thing.
>>
>>I would like to argue that there are things that there is no such thing as
>>too much of, but I can't think of any examples off hand.
>
>Money?

Think of all those lottery winners whose lives got totally screwed up by
money.

I'm of the opinion that if I did win the lottery (which I don't play, so
there's no chance of this happening), I'd keep a million or two to live on
(comfortably) and give the rest away (in one fell swoop) to some good
charity. I wouldn't tell anyone about it.

The hard part, in this day and age where everything is a scam, would be
finding an actually good/deserving charity.

--

Prayer has no place in the public schools, just like facts
have no place in organized religion.
-- Superintendent Chalmers

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

<20240402131748.919@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2314&group=comp.lang.misc#2314

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Too much? (Was: Command Languages Versus Programming Languages)
Date: Tue, 2 Apr 2024 20:20:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <20240402131748.919@kylheku.com>
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>
Injection-Date: Tue, 02 Apr 2024 20:20:40 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d32078294708f72fe3a949b9ce8e6715";
logging-data="3594522"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185NUlnidphquh6wTbGAjz0GpMZvXZFKY8="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:9AL0BzYSYkawDitgTNyISqG1SYM=
 by: Kaz Kylheku - Tue, 2 Apr 2024 20:20 UTC

On 2024-04-02, Kenny McCormack <gazelle@shell.xmission.com> wrote:
> Think of all those lottery winners whose lives got totally screwed up by
> money.
>
> I'm of the opinion that if I did win the lottery (which I don't play, so
> there's no chance of this happening), I'd keep a million or two to live on
> (comfortably) and give the rest away (in one fell swoop) to some good
> charity. I wouldn't tell anyone about it.

Yes; I've read the stories about this, so I'm well prepared. :)

Not telling anyone is important. If you're required to make an
appearance to accept, wear disguise. Mask, Groucho Marx glasses, ...

Don't let your name be publicized.

> The hard part, in this day and age where everything is a scam, would be
> finding an actually good/deserving charity.

Why, The Free Software Foundation. :)

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

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

<uuhq7m$3ahp1$2@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2315&group=comp.lang.misc#2315

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!news.chmurka.net!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Too much? (Was: Command Languages Versus Programming Languages)
Date: Tue, 2 Apr 2024 20:36:06 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uuhq7m$3ahp1$2@news.xmission.com>
References: <uu54la$3su5b$6@dont-email.me> <UzYON.154262$TSTa.122307@fx47.iad> <uuhp3m$3ahp1$1@news.xmission.com> <20240402131748.919@kylheku.com>
Injection-Date: Tue, 2 Apr 2024 20:36:06 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3491617"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Tue, 2 Apr 2024 20:36 UTC

In article <20240402131748.919@kylheku.com>,
Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>On 2024-04-02, Kenny McCormack <gazelle@shell.xmission.com> wrote:
>> Think of all those lottery winners whose lives got totally screwed up by
>> money.
>>
>> I'm of the opinion that if I did win the lottery (which I don't play, so
>> there's no chance of this happening), I'd keep a million or two to live on
>> (comfortably) and give the rest away (in one fell swoop) to some good
>> charity. I wouldn't tell anyone about it.
>
>Yes; I've read the stories about this, so I'm well prepared. :)
>
>Not telling anyone is important. If you're required to make an
>appearance to accept, wear disguise. Mask, Groucho Marx glasses, ...
>
>Don't let your name be publicized.

I wonder if you could just transfer the ticket as is to the charity, with
an understanding that you get a seat on the board (or some other no-show
job - this would be more than enough for you to live the rest of your life
on).

>> The hard part, in this day and age where everything is a scam, would be
>> finding an actually good/deserving charity.
>
>Why, The Free Software Foundation. :)

Good idea.

--
I love the poorly educated.

Re: Command Languages Versus Programming Languages

<uui3i1$3g16r$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2316&group=comp.lang.misc#2316

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuyper@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 2 Apr 2024 19:15:13 -0400
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <uui3i1$3g16r$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87wmpg7gpg.fsf@tudado.org>
<uufl5j$2q81c$1@dont-email.me> <87plv762zt.fsf@tudado.org>
<uuhkfp$3afj1$1@news.xmission.com> <UzYON.154262$TSTa.122307@fx47.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 02 Apr 2024 23:15:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f16d435015401e447a98152e35fd1e18";
logging-data="3671259"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18E53dgwCVm+zfpmIvQBhV/yL94RvgJ7TM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fW1Ge8EuOfVk0MMm+dMgA1SEW+4=
Content-Language: en-US
In-Reply-To: <UzYON.154262$TSTa.122307@fx47.iad>
 by: James Kuyper - Tue, 2 Apr 2024 23:15 UTC

On 4/2/24 14:59, Scott Lurndal wrote:
> gazelle@shell.xmission.com (Kenny McCormack) writes:
....
>> I would like to argue that there are things that there is no such thing as
>> too much of, but I can't think of any examples off hand.
>
> Money?

If you have lots of moeny, and insufficient protection, you can be in
danger. Also, a sufficiently large amount of money can crush you.

Re: Command Languages Versus Programming Languages

<uui7hf$3gona$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2317&group=comp.lang.misc#2317

  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: Wed, 3 Apr 2024 00:23:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <uui7hf$3gona$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 03 Apr 2024 00:23:12 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="16e69d2ca1c4626c1f9269404c95150f";
logging-data="3695338"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wq5a53Cgz1lpLuvMDFfOo"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:6/SGjYmsJBdSX5FfM48s22hk3DQ=
 by: Lawrence D'Oliv - Wed, 3 Apr 2024 00:23 UTC

On 2 Apr 2024 08:26:14 GMT, Stefan Ram wrote:

> ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:
>
>>def diff( x ):
>> return 1 if x == 'x' else 0 if type( x )is str else[ 'sum', diff( x[
>> 1 ]), diff( x[ 2 ])]
>> if x[ 0 ]== 'sum' else None
>
> Oops! That was one long line starting with "return";
> it was wrapped by the newsreader, but is not correct Python anymore
> when wrapped this way.

It’s bloody horrible Python even when wrapped correctly. I think Python’s
version of the conditional expression is a complete abortion.

How about this, to at least get things the same way round as in the more
usual C-style conditional expression:

def diff(x) :
return \
[
lambda :
[
lambda :
[
lambda : None,
lambda : ['sum', diff(x[1]), diff(x[2])],
][x[0] == 'sum'](),
lambda : 0,
][isinstance(x, str)](),
lambda : 1,
][x == 'x']()
#end diff

Re: Command Languages Versus Programming Languages

<uui7ia$3gona$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2318&group=comp.lang.misc#2318

  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: Wed, 3 Apr 2024 00:23:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <uui7ia$3gona$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> <uufl5j$2q81c$1@dont-email.me>
<87plv762zt.fsf@tudado.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 03 Apr 2024 00:23:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="16e69d2ca1c4626c1f9269404c95150f";
logging-data="3695338"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LxaqXX5UBHx4aBR53bFGW"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:tzJWxdN7GHRL/vnBuWYhgWiHfNA=
 by: Lawrence D'Oliv - Wed, 3 Apr 2024 00:23 UTC

On Tue, 02 Apr 2024 15:20:06 -0300, Johanne Fairchild wrote:

> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>
>> On Mon, 01 Apr 2024 21:26:19 -0300, Johanne Fairchild wrote:
>>
>>> reading that indentation.
>>
>> If indentation is good, more indentation should be better.
>
> Too much of a good thing is a bad thing.

Should that principle be carried to excess, though?

Re: Command Languages Versus Programming Languages

<uui7m1$3gona$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2319&group=comp.lang.misc#2319

  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: Wed, 3 Apr 2024 00:25:37 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <uui7m1$3gona$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> <uufl5j$2q81c$1@dont-email.me>
<uugj3f$34d7b$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 03 Apr 2024 00:25:37 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="16e69d2ca1c4626c1f9269404c95150f";
logging-data="3695338"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WyBYANAXof7h/js/NeRzZ"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:KW8IYwHGq8/aUKRCockTVXXjFgM=
 by: Lawrence D'Oliv - Wed, 3 Apr 2024 00:25 UTC

On Tue, 2 Apr 2024 05:28:15 -0400, James Kuyper wrote:

> By that same logic, if water is good, more water should be better. Tell
> that to someone who is drowning.

Now there would be an example of too much logic, if you really want to
discuss such a thing with someone who is drowning, would it not?

> ... she was following a recommendation that she drink 8 glasses of water
> a day "for her health".

Also look up “water intoxication”. Can kill anybody.

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

<uuj11l$3pqbb$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2320&group=comp.lang.misc#2320

  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.brown@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: Wed, 3 Apr 2024 09:38:29 +0200
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <uuj11l$3pqbb$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 03 Apr 2024 07:38:30 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d947ee419443e9c9612d1b6b56ad3053";
logging-data="3991915"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AxefHIzPQOw+bYIt4fvfkxOBiz5UrBWo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:EPnXq0OpEQp4lztON+ewXh9kqto=
Content-Language: en-GB
In-Reply-To: <uuhp3m$3ahp1$1@news.xmission.com>
 by: David Brown - Wed, 3 Apr 2024 07:38 UTC

On 02/04/2024 22:16, Kenny McCormack wrote:
> In article <UzYON.154262$TSTa.122307@fx47.iad>,
> Scott Lurndal <slp53@pacbell.net> wrote:
> ...
>>> By definition. Because the definition of "too much" implies having crossed
>>> into the zone of being a bad thing.
>>>
>>> I would like to argue that there are things that there is no such thing as
>>> too much of, but I can't think of any examples off hand.
>>
>> Money?
>
> Think of all those lottery winners whose lives got totally screwed up by
> money.
>
> I'm of the opinion that if I did win the lottery (which I don't play, so
> there's no chance of this happening), I'd keep a million or two to live on
> (comfortably) and give the rest away (in one fell swoop) to some good
> charity. I wouldn't tell anyone about it.
>

A lot more people think that, than actually follow through when they win
the lottery (or other large windfall). It turns out to be surprisingly
difficult to keep it a secret, surprisingly difficult psychologically to
give most of the money away, and surprisingly difficult to live happily
from a lump sum that you keep. People do fine when they win a large
prize (I guess up to a few $100k) - they pay off their mortgage, buy a
fancy car, take a nice holiday. But prizes of $10M and more usually
cause a lot of trouble for the winner.

> The hard part, in this day and age where everything is a scam, would be
> finding an actually good/deserving charity.
>

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.

Re: Command Languages Versus Programming Languages

<uuj1o5$3pvnq$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2321&group=comp.lang.misc#2321

  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.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 3 Apr 2024 09:50:28 +0200
Organization: A noiseless patient Spider
Lines: 58
Message-ID: <uuj1o5$3pvnq$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 03 Apr 2024 07:50:29 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d947ee419443e9c9612d1b6b56ad3053";
logging-data="3997434"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zvLxTxPC+9HUX+gX7wtNYFD1sSJLbC9Y="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:TVX75af4QfNDFiP6/EJguw3V4+Q=
Content-Language: en-GB
In-Reply-To: <uui7hf$3gona$1@dont-email.me>
 by: David Brown - Wed, 3 Apr 2024 07:50 UTC

On 03/04/2024 02:23, Lawrence D'Oliveiro wrote:
> On 2 Apr 2024 08:26:14 GMT, Stefan Ram wrote:
>
>> ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:
>>
>>> def diff( x ):
>>> return 1 if x == 'x' else 0 if type( x )is str else[ 'sum', diff( x[
>>> 1 ]), diff( x[ 2 ])]
>>> if x[ 0 ]== 'sum' else None
>>
>> Oops! That was one long line starting with "return";
>> it was wrapped by the newsreader, but is not correct Python anymore
>> when wrapped this way.
>
> It’s bloody horrible Python even when wrapped correctly. I think Python’s
> version of the conditional expression is a complete abortion.
>

That's probably the reason almost no one uses it. That post is the
first time I have ever seen conditional expressions outside of a brief
mention in a tutorial on Python conditionals showing how to write normal
conditionals in the language. I think Python stole this one from Perl.

> How about this, to at least get things the same way round as in the more
> usual C-style conditional expression:
>
> def diff(x) :
> return \
> [
> lambda :
> [
> lambda :
> [
> lambda : None,
> lambda : ['sum', diff(x[1]), diff(x[2])],
> ][x[0] == 'sum'](),
> lambda : 0,
> ][isinstance(x, str)](),
> lambda : 1,
> ][x == 'x']()
> #end diff

How about just writing Python code the way pretty much everyone else
writes Python code? In a simple and obvious manner :

def diff(x) :
if x == 'x' :
return 1
if isinstance(x, str) :
return 0
if x[0] == 'sum' :
return ['sum', diff(x[1]), diff(x[2])]
return None

Re: Command Languages Versus Programming Languages

<uuj1to$3phh2$10@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2322&group=comp.lang.misc#2322

  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: Wed, 3 Apr 2024 07:53:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <uuj1to$3phh2$10@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 03 Apr 2024 07:53:28 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="16e69d2ca1c4626c1f9269404c95150f";
logging-data="3982882"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18PVDjAdGzsu5IeKgnVK7WF"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:LpI/HrLpaDdflwzoejzZIBS4vrg=
 by: Lawrence D'Oliv - Wed, 3 Apr 2024 07:53 UTC

On Wed, 3 Apr 2024 09:50:28 +0200, David Brown wrote:

> How about just writing Python code the way pretty much everyone else
> writes Python code?

That can be generalized to switch-expressions as well. See my notebook on
“Simple Code-Shortening Idioms” at
<https://gitlab.com/ldo/python_topics_notebooks/>.

Re: Command Languages Versus Programming Languages

<87v84ywy00.fsf@tudado.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2323&group=comp.lang.misc#2323

  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: jfairchild@tudado.org (Johanne Fairchild)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 03 Apr 2024 07:18:07 -0300
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <87v84ywy00.fsf@tudado.org>
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> <uufl5j$2q81c$1@dont-email.me>
<87plv762zt.fsf@tudado.org> <uui7ia$3gona$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 03 Apr 2024 10:18:10 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="905f744cc8ca7f9ada77f01150ef9fd6";
logging-data="4059900"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wiBjUHPFjoAHKMoIkjggaYvEeijJ/Koc="
Cancel-Lock: sha1:Ufamwce5aYVNUzwWYxydB/Hk5TI=
sha1:XtlDo9gdNsFaW6o9Cf8XN1gsQbA=
 by: Johanne Fairchild - Wed, 3 Apr 2024 10:18 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:

> On Tue, 02 Apr 2024 15:20:06 -0300, Johanne Fairchild wrote:
>
>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>
>>> On Mon, 01 Apr 2024 21:26:19 -0300, Johanne Fairchild wrote:
>>>
>>>> reading that indentation.
>>>
>>> If indentation is good, more indentation should be better.
>>
>> Too much of a good thing is a bad thing.
>
> Should that principle be carried to excess, though?

Surely not if it's a good thing. :-)

Re: Command Languages Versus Programming Languages

<wwva5mapkrh.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2324&group=comp.lang.misc#2324

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 03 Apr 2024 15:45:54 +0100
Organization: terraraq NNTP server
Message-ID: <wwva5mapkrh.fsf@LkoBDZeT.terraraq.uk>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<types-20240401151149@ram.dialup.fu-berlin.de>
<20240401111552.00006ddc@gmail.com>
<20240401134457.000067f2@gmail.com>
<stack-20240401220727@ram.dialup.fu-berlin.de>
<20240401143042.000056e0@gmail.com> <zJGON.210616$hN14.93559@fx17.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="55344"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:pLr8RBEYbC3/kZg3N2DibOMhDIA=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Wed, 3 Apr 2024 14:45 UTC

scott@slp53.sl.home (Scott Lurndal) writes:
> John Ames <commodorejohn@gmail.com> writes:
>>On 1 Apr 2024 21:13:42 GMT
>>ram@zedat.fu-berlin.de (Stefan Ram) wrote:
>>
>>> This stack "management" is "limited" in C:
>>
>>True enough, although as noted that's an implementation issue as much
>>as it is a limitation of the language spec. (I'm not sure how you could
>>handle that in a way that's both robust and reasonably C-ish...)
>
> Modern (64-bit) linux systems leave large buffer zones (unmapped addresses)
> on either side of the stack; a stack overflow or underflow will
> immediately fault if the RLIMIT_STACK value is exceeded.

....unless it’s exceeded by enough to reach some other mapped address.

https://blog.qualys.com/vulnerabilities-threat-research/2017/06/19/the-stack-clash

--
https://www.greenend.org.uk/rjk/

Re: Command Languages Versus Programming Languages

<20240403075342.00006c15@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2325&group=comp.lang.misc#2325

  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: commodorejohn@gmail.com (John Ames)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 3 Apr 2024 07:53:42 -0700
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <20240403075342.00006c15@gmail.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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Date: Wed, 03 Apr 2024 14:53:44 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1a7f1578fe464693513212e24e75ad17";
logging-data="4162770"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/oJrSgm8ftkdm3KENX6lrbXkz39xaGb9E="
Cancel-Lock: sha1:SE78t7rt3Q8k8+DMbx7C3f+nPFA=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
 by: John Ames - Wed, 3 Apr 2024 14:53 UTC

On Wed, 3 Apr 2024 09:50:28 +0200
David Brown <david.brown@hesbynett.no> wrote:

> On 03/04/2024 02:23, Lawrence D'Oliveiro wrote:
> > It’s bloody horrible Python even when wrapped correctly. I think
> > Python’s version of the conditional expression is a complete
> > abortion.
> That's probably the reason almost no one uses it. That post is the
> first time I have ever seen conditional expressions outside of a
> brief mention in a tutorial on Python conditionals showing how to
> write normal conditionals in the language. I think Python stole this
> one from Perl.

It's a real "Doc, it hurts when I do this!" situation.

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2326&group=comp.lang.misc#2326

  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.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 03 Apr 2024 09:00:25 -0700
Organization: None to speak of
Lines: 34
Message-ID: <87plv6jv1i.fsf@nosuchdomain.example.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>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 03 Apr 2024 16:00:34 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a67faaad1a2f17d94ae762a9e9871bf2";
logging-data="35184"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tWxYn4nXgVu9iJxdNr+YE"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:A89/7wvR9zKbeODaOOgvUK4r2mU=
sha1:e1DnGyJG214lrbIxruA6I5QgamY=
 by: Keith Thompson - Wed, 3 Apr 2024 16:00 UTC

David Brown <david.brown@hesbynett.no> writes:
> On 03/04/2024 02:23, Lawrence D'Oliveiro wrote:
>> On 2 Apr 2024 08:26:14 GMT, Stefan Ram wrote:
>>
>>> ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:
>>>
>>>> def diff( x ):
>>>> return 1 if x == 'x' else 0 if type( x )is str else[ 'sum', diff( x[
>>>> 1 ]), diff( x[ 2 ])]
>>>> if x[ 0 ]== 'sum' else None
>>>
>>> Oops! That was one long line starting with "return";
>>> it was wrapped by the newsreader, but is not correct Python anymore
>>> when wrapped this way.
>> It’s bloody horrible Python even when wrapped correctly. I think
>> Python’s version of the conditional expression is a complete
>> abortion.
>
> That's probably the reason almost no one uses it. That post is the
> first time I have ever seen conditional expressions outside of a brief
> mention in a tutorial on Python conditionals showing how to write
> normal conditionals in the language. I think Python stole this one
> from Perl.

No, Perl's conditional expressions use the same syntax as C's.

As for whether Python's conditional expression syntax, it's not clear
that (cond ? expr1 : expr2) is better or worse than (expr1 if cond else
expr2) (unless you happen to be familiar with one of them).

--
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

<wwv5xwyifq8.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2327&group=comp.lang.misc#2327

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!news.niel.me!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 03 Apr 2024 17:16:31 +0100
Organization: terraraq NNTP server
Message-ID: <wwv5xwyifq8.fsf@LkoBDZeT.terraraq.uk>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="56456"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:cOfQ8/9VUfKi6C1hAaaI89lAQIs=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Wed, 3 Apr 2024 16:16 UTC

Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
> David Brown <david.brown@hesbynett.no> writes:
>> On 03/04/2024 02:23, Lawrence D'Oliveiro wrote:
>>> It’s bloody horrible Python even when wrapped correctly. I think
>>> Python’s version of the conditional expression is a complete
>>> abortion.
>>
>> That's probably the reason almost no one uses it. That post is the
>> first time I have ever seen conditional expressions outside of a brief
>> mention in a tutorial on Python conditionals showing how to write
>> normal conditionals in the language. I think Python stole this one
>> from Perl.
>
> No, Perl's conditional expressions use the same syntax as C's.
>
> As for whether Python's conditional expression syntax, it's not clear
> that (cond ? expr1 : expr2) is better or worse than (expr1 if cond else
> expr2) (unless you happen to be familiar with one of them).

I’ve been familiar with both for years and I think the Python version is
awful; in particular the ordering is a bizarre choice. The PEP where
they worked out the design acknowledges this but then they went ahead
and did it anyway...

--
https://www.greenend.org.uk/rjk/

Re: Command Languages Versus Programming Languages

<uuk06h$1fnl$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2328&group=comp.lang.misc#2328

  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.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 3 Apr 2024 18:30:08 +0200
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <uuk06h$1fnl$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 03 Apr 2024 16:30:09 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5088b5348498eb86262c097b8448a540";
logging-data="48885"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0jhQ/cQPNPfmpn4MPVP8Gonn48H2XgMQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ylbqKwn9mPJpWNKjuuxzPmNY+Wc=
Content-Language: en-GB
In-Reply-To: <87plv6jv1i.fsf@nosuchdomain.example.com>
 by: David Brown - Wed, 3 Apr 2024 16:30 UTC

On 03/04/2024 18:00, Keith Thompson wrote:
> David Brown <david.brown@hesbynett.no> writes:
>> On 03/04/2024 02:23, Lawrence D'Oliveiro wrote:
>>> On 2 Apr 2024 08:26:14 GMT, Stefan Ram wrote:
>>>
>>>> ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:
>>>>
>>>>> def diff( x ):
>>>>> return 1 if x == 'x' else 0 if type( x )is str else[ 'sum', diff( x[
>>>>> 1 ]), diff( x[ 2 ])]
>>>>> if x[ 0 ]== 'sum' else None
>>>>
>>>> Oops! That was one long line starting with "return";
>>>> it was wrapped by the newsreader, but is not correct Python anymore
>>>> when wrapped this way.
>>> It’s bloody horrible Python even when wrapped correctly. I think
>>> Python’s version of the conditional expression is a complete
>>> abortion.
>>
>> That's probably the reason almost no one uses it. That post is the
>> first time I have ever seen conditional expressions outside of a brief
>> mention in a tutorial on Python conditionals showing how to write
>> normal conditionals in the language. I think Python stole this one
>> from Perl.
>
> No, Perl's conditional expressions use the same syntax as C's.

I am not very familiar with Perl, and don't know what are expressions or
statements. Perhaps I have been imagining things. I had the idea that
in Perl you could write "<do_this> if <condition>" as an alternative to
the more common imperative language ordering "if <condition> then
<do_this>".

>
> As for whether Python's conditional expression syntax, it's not clear
> that (cond ? expr1 : expr2) is better or worse than (expr1 if cond else
> expr2) (unless you happen to be familiar with one of them).
>

I think expr1 and expr2 belong naturally together, as you are selecting
one or the other. If you are using a short-circuit evaluation, you
would express it in words as "evaluate cond, and based on that, evaluate
either expr1 and expr2". Having "expr1" first is a bit like a recipe
that says "add the sugar to the egg whites, having first beaten the egg
whites". It is an ordering that does not suit well in an imperative
language (I know Python is multi-paradigm, but it is basically imperative).

But I agree that familiarity could be a big factor in my subjective
opinion here.

Re: Command Languages Versus Programming Languages

<ZSfPN.491604$yEgf.303039@fx09.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2329&group=comp.lang.misc#2329

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx09.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Command Languages Versus Programming Languages
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org> <types-20240401151149@ram.dialup.fu-berlin.de> <20240401111552.00006ddc@gmail.com> <20240401134457.000067f2@gmail.com> <stack-20240401220727@ram.dialup.fu-berlin.de> <20240401143042.000056e0@gmail.com> <zJGON.210616$hN14.93559@fx17.iad> <wwva5mapkrh.fsf@LkoBDZeT.terraraq.uk>
Lines: 24
Message-ID: <ZSfPN.491604$yEgf.303039@fx09.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 03 Apr 2024 16:56:25 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 03 Apr 2024 16:56:25 GMT
X-Received-Bytes: 2025
 by: Scott Lurndal - Wed, 3 Apr 2024 16:56 UTC

Richard Kettlewell <invalid@invalid.invalid> writes:
>scott@slp53.sl.home (Scott Lurndal) writes:
>> John Ames <commodorejohn@gmail.com> writes:
>>>On 1 Apr 2024 21:13:42 GMT
>>>ram@zedat.fu-berlin.de (Stefan Ram) wrote:
>>>
>>>> This stack "management" is "limited" in C:
>>>
>>>True enough, although as noted that's an implementation issue as much
>>>as it is a limitation of the language spec. (I'm not sure how you could
>>>handle that in a way that's both robust and reasonably C-ish...)
>>
>> Modern (64-bit) linux systems leave large buffer zones (unmapped addresses)
>> on either side of the stack; a stack overflow or underflow will
>> immediately fault if the RLIMIT_STACK value is exceeded.
>
>...unless it’s exceeded by enough to reach some other mapped address.
>
>https://blog.qualys.com/vulnerabilities-threat-research/2017/06/19/the-stack-clash

Yes, clearly the buffer zones must be limited in size to allow space
for the rest of the application (and note that most extant processors
limit the virtual address space to 44 or 48 bits (up to 52 on ARM64)).

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2330&group=comp.lang.misc#2330

  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.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 03 Apr 2024 10:19:55 -0700
Organization: None to speak of
Lines: 57
Message-ID: <87le5ujrd0.fsf@nosuchdomain.example.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>
<uuk06h$1fnl$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 03 Apr 2024 17:20:00 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a67faaad1a2f17d94ae762a9e9871bf2";
logging-data="70729"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SwVLxcquuqFjnA6jFDU+i"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:GHy7s17qw1YPhExkPI0Q+/VPVj4=
sha1:jWjEhbKCa3PeJhGoQMwj9SkGNYs=
 by: Keith Thompson - Wed, 3 Apr 2024 17:19 UTC

David Brown <david.brown@hesbynett.no> writes:
> On 03/04/2024 18:00, Keith Thompson wrote:
>> David Brown <david.brown@hesbynett.no> writes:
[...]
>>> That's probably the reason almost no one uses it. That post is the
>>> first time I have ever seen conditional expressions outside of a brief
>>> mention in a tutorial on Python conditionals showing how to write
>>> normal conditionals in the language. I think Python stole this one
>>> from Perl.
>> No, Perl's conditional expressions use the same syntax as C's.
>
> I am not very familiar with Perl, and don't know what are expressions
> or statements. Perhaps I have been imagining things. I had the idea
> that in Perl you could write "<do_this> if <condition>" as an
> alternative to the more common imperative language ordering "if
> <condition> then <do_this>".

Yes, but it's not the same thing. Perl has postfix conditionals, so you
can write:

statement if condition;

but that's a statement, not an expression, and there's no form
equivalent to if/else. It's a specific case of "statement modifiers",
where the keyword can be any of if, unless, while, until, for, foreach,
or when. (The latter is for an experimental "switch" feature, disabled
by default in recent releases.)

https://perldoc.perl.org/perlsyn#Statement-Modifiers

>> As for whether Python's conditional expression syntax, it's not
>> clear
>> that (cond ? expr1 : expr2) is better or worse than (expr1 if cond else
>> expr2) (unless you happen to be familiar with one of them).
>
> I think expr1 and expr2 belong naturally together, as you are
> selecting one or the other. If you are using a short-circuit
> evaluation, you would express it in words as "evaluate cond, and based
> on that, evaluate either expr1 and expr2". Having "expr1" first is a
> bit like a recipe that says "add the sugar to the egg whites, having
> first beaten the egg whites". It is an ordering that does not suit
> well in an imperative language (I know Python is multi-paradigm, but
> it is basically imperative).
>
> But I agree that familiarity could be a big factor in my subjective
> opinion here.

I don't have a strong opinion one way or the other, beyond a willingness
to accept the syntax and other rules of whatever language I'm using.
But I suggest that Python's "expr1 if condition else expr2" is intended
to emphasize expr1 over expr2, treating the condition being true as the
"normal" case. That's not necessarily a bad thing.

--
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

<uukav6$403m$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2331&group=comp.lang.misc#2331

  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.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 3 Apr 2024 21:33:58 +0200
Organization: A noiseless patient Spider
Lines: 70
Message-ID: <uukav6$403m$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>
<uuk06h$1fnl$1@dont-email.me> <87le5ujrd0.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 03 Apr 2024 19:33:58 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5088b5348498eb86262c097b8448a540";
logging-data="131190"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UbLlIfVoiUEepZZ2RuYBtMkxDjrekqfk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:TA4zyhuCbjWV8SYlYGFCjm5/8S4=
In-Reply-To: <87le5ujrd0.fsf@nosuchdomain.example.com>
Content-Language: en-GB
 by: David Brown - Wed, 3 Apr 2024 19:33 UTC

On 03/04/2024 19:19, Keith Thompson wrote:
> David Brown <david.brown@hesbynett.no> writes:
>> On 03/04/2024 18:00, Keith Thompson wrote:
>>> David Brown <david.brown@hesbynett.no> writes:
> [...]
>>>> That's probably the reason almost no one uses it. That post is the
>>>> first time I have ever seen conditional expressions outside of a brief
>>>> mention in a tutorial on Python conditionals showing how to write
>>>> normal conditionals in the language. I think Python stole this one
>>>> from Perl.
>>> No, Perl's conditional expressions use the same syntax as C's.
>>
>> I am not very familiar with Perl, and don't know what are expressions
>> or statements. Perhaps I have been imagining things. I had the idea
>> that in Perl you could write "<do_this> if <condition>" as an
>> alternative to the more common imperative language ordering "if
>> <condition> then <do_this>".
>
> Yes, but it's not the same thing. Perl has postfix conditionals, so you
> can write:
>
> statement if condition;
>
> but that's a statement, not an expression, and there's no form
> equivalent to if/else. It's a specific case of "statement modifiers",
> where the keyword can be any of if, unless, while, until, for, foreach,
> or when. (The latter is for an experimental "switch" feature, disabled
> by default in recent releases.)

OK. That's a lot more than I knew.

However, I don't see a relevant distinction between a statement and an
expression as particularly significant here, at least in terms of code
clarity.

>
> https://perldoc.perl.org/perlsyn#Statement-Modifiers
>
>>> As for whether Python's conditional expression syntax, it's not
>>> clear
>>> that (cond ? expr1 : expr2) is better or worse than (expr1 if cond else
>>> expr2) (unless you happen to be familiar with one of them).
>>
>> I think expr1 and expr2 belong naturally together, as you are
>> selecting one or the other. If you are using a short-circuit
>> evaluation, you would express it in words as "evaluate cond, and based
>> on that, evaluate either expr1 and expr2". Having "expr1" first is a
>> bit like a recipe that says "add the sugar to the egg whites, having
>> first beaten the egg whites". It is an ordering that does not suit
>> well in an imperative language (I know Python is multi-paradigm, but
>> it is basically imperative).
>>
>> But I agree that familiarity could be a big factor in my subjective
>> opinion here.
>
> I don't have a strong opinion one way or the other, beyond a willingness
> to accept the syntax and other rules of whatever language I'm using.

Of course we use the languages we use, warts and all. It's rare that
anyone uses a language for a significant amount of work and doesn't
dislike at least some aspects of the language.

> But I suggest that Python's "expr1 if condition else expr2" is intended
> to emphasize expr1 over expr2, treating the condition being true as the
> "normal" case. That's not necessarily a bad thing.
>

Perhaps.

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2332&group=comp.lang.misc#2332

  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.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 03 Apr 2024 12:58:49 -0700
Organization: None to speak of
Lines: 53
Message-ID: <87cyr6jk06.fsf@nosuchdomain.example.com>
References: <uu54la$3su5b$6@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>
<uuk06h$1fnl$1@dont-email.me>
<87le5ujrd0.fsf@nosuchdomain.example.com>
<uukav6$403m$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 03 Apr 2024 19:58:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a67faaad1a2f17d94ae762a9e9871bf2";
logging-data="145077"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18C4OrfozQ/baDq2xhrk8ry"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:ZEcDHO/5mKZfoRxARyxuJ/V8sFU=
sha1:4xfO4EBhmeMCZljm4SSORw9NFAo=
 by: Keith Thompson - Wed, 3 Apr 2024 19:58 UTC

David Brown <david.brown@hesbynett.no> writes:
> On 03/04/2024 19:19, Keith Thompson wrote:
>> David Brown <david.brown@hesbynett.no> writes:
>>> On 03/04/2024 18:00, Keith Thompson wrote:
>>>> David Brown <david.brown@hesbynett.no> writes:
>> [...]
>>>>> That's probably the reason almost no one uses it. That post is the
>>>>> first time I have ever seen conditional expressions outside of a brief
>>>>> mention in a tutorial on Python conditionals showing how to write
>>>>> normal conditionals in the language. I think Python stole this one
>>>>> from Perl.
>>>> No, Perl's conditional expressions use the same syntax as C's.
>>>
>>> I am not very familiar with Perl, and don't know what are expressions
>>> or statements. Perhaps I have been imagining things. I had the idea
>>> that in Perl you could write "<do_this> if <condition>" as an
>>> alternative to the more common imperative language ordering "if
>>> <condition> then <do_this>".
>> Yes, but it's not the same thing. Perl has postfix conditionals, so
>> you
>> can write:
>> statement if condition;
>> but that's a statement, not an expression, and there's no form
>> equivalent to if/else. It's a specific case of "statement modifiers",
>> where the keyword can be any of if, unless, while, until, for, foreach,
>> or when. (The latter is for an experimental "switch" feature, disabled
>> by default in recent releases.)
>
> OK. That's a lot more than I knew.
>
> However, I don't see a relevant distinction between a statement and an
> expression as particularly significant here, at least in terms of code
> clarity.

One distinction is that, for example, you can't use
statement if condition;
as part of a larger expression. Also, there's no else clause.

Perl's statement modifiers are an alternative syntax for conditional
*statements*. In particular, `statement if condition;` is equivalent to
`if (condition) { statement; }`. Their purpose is to allow some code to
be written more concisely. (Note that an if statement or other compound
statement requires { and }.)

Perl adopted C's ?: syntax for conditional expressions with little or
no change.

[...]

--
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: Too much? (Was: Command Languages Versus Programming Languages)

<uukndn$6jp4$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2333&group=comp.lang.misc#2333

  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: jameskuyper@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Too much? (Was: Command Languages Versus Programming Languages)
Date: Wed, 3 Apr 2024 19:06:31 -0400
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <uukndn$6jp4$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 03 Apr 2024 23:06:31 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0f535587ed0cce5386e66a52273f2426";
logging-data="216868"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+D+3zoej5IGb7ifi6txdoUGltlfzd5NOU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:7jYI4wSaKP71GGLNPP1uJe8LX0w=
Content-Language: en-US
In-Reply-To: <uuj11l$3pqbb$1@dont-email.me>
 by: James Kuyper - Wed, 3 Apr 2024 23:06 UTC

On 4/3/24 03:38, David Brown wrote:
....
> 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)

I'm curious - in which country is "football" used as the name of a sport
that doesn't involve feet? I know of many countries where "football"
refers to a sport where the use of hands is prohibited, and others where
it's allowed, but I'm not aware of any where the use of feet to kick the
ball is prohibited.

Football (Was: Too much? (Was: Command Languages Versus Programming Languages))

<uukob8$3bv02$1@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2334&group=comp.lang.misc#2334

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Football (Was: Too much? (Was: Command Languages Versus Programming Languages))
Date: Wed, 3 Apr 2024 23:22:16 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uukob8$3bv02$1@news.xmission.com>
References: <uu54la$3su5b$6@dont-email.me> <uuhp3m$3ahp1$1@news.xmission.com> <uuj11l$3pqbb$1@dont-email.me> <uukndn$6jp4$1@dont-email.me>
Injection-Date: Wed, 3 Apr 2024 23:22:16 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3537922"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Wed, 3 Apr 2024 23:22 UTC

In article <uukndn$6jp4$1@dont-email.me>,
James Kuyper <jameskuyper@alumni.caltech.edu> wrote:
>On 4/3/24 03:38, David Brown wrote:
>...
>> 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)
>
>I'm curious - in which country is "football" used as the name of a sport
>that doesn't involve feet? I know of many countries where "football"
>refers to a sport where the use of hands is prohibited, and others where
>it's allowed, but I'm not aware of any where the use of feet to kick the
>ball is prohibited.

You are, of course, nitpicking. American football, as I'm sure you're
aware, is almost entirely not played with the feet.

Yes, there is kicking involved, but it is a very small part of the game and
is almost irrelevant in the grand scheme of things.

Thus ends today's lecture on sports. You may resume your normally scheduled
programming. (See, that's a little joke, because this *is* a programming
newsgroup...)

--
(Cruz certainly has an odd face) ... it looks like someone sewed pieces of a
waterlogged Reagan mask together at gunpoint ...

http://www.rollingstone.com/politics/news/how-america-made-donald-trump-unstoppable-20160224

Re: Command Languages Versus Programming Languages

<uulnf2$hg6h$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2335&group=comp.lang.misc#2335

  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: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Thu, 4 Apr 2024 08:13:22 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <uulnf2$hg6h$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>
Injection-Date: Thu, 04 Apr 2024 08:13:22 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4f3283ee60a3ebcbca7b81ecdc077b86";
logging-data="573649"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197bca+frbKV1yPozORnZFA"
Cancel-Lock: sha1:9fexblOR+oLFf8+vD3iwV1M0e/8=
 by: Muttley@dastardlyhq.com - Thu, 4 Apr 2024 08:13 UTC

On Wed, 03 Apr 2024 17:16:31 +0100
Richard Kettlewell <invalid@invalid.invalid> wrote:
>Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>> David Brown <david.brown@hesbynett.no> writes:
>>> On 03/04/2024 02:23, Lawrence D'Oliveiro wrote:
>>>> It’s bloody horrible Python even when wrapped correctly. I think
>>>> Python’s version of the conditional expression is a complete
>>>> abortion.
>>>
>>> That's probably the reason almost no one uses it. That post is the
>>> first time I have ever seen conditional expressions outside of a brief
>>> mention in a tutorial on Python conditionals showing how to write
>>> normal conditionals in the language. I think Python stole this one
>>> from Perl.
>>
>> No, Perl's conditional expressions use the same syntax as C's.
>>
>> As for whether Python's conditional expression syntax, it's not clear
>> that (cond ? expr1 : expr2) is better or worse than (expr1 if cond else
>> expr2) (unless you happen to be familiar with one of them).
>
>I’ve been familiar with both for years and I think the Python version is
>awful; in particular the ordering is a bizarre choice. The PEP where
>they worked out the design acknowledges this but then they went ahead
>and did it anyway...

I believe its known as being different for the sake of being different which
is closely related to change for changes sake. Its the reason screwed up the
WIndows GUI - a new generation of devs had to prove their could be different
to the previous one regardless of how badly their new version sucked. Or in
more general cases - we've all seen new managers come in and change processes
just to prove they were doing something.

Re: Command Languages Versus Programming Languages

<if-20240404121825@ram.dialup.fu-berlin.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2336&group=comp.lang.misc#2336

  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: 4 Apr 2024 11:20:48 GMT
Organization: Stefan Ram
Lines: 19
Expires: 1 Feb 2025 11:59:58 GMT
Message-ID: <if-20240404121825@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>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de yoteiWOZAhLpZ4YMI2KohQM7acBmxFTdrqLwG5pHWhXrIZ
Cancel-Lock: sha1:cI/lHcd4cNVDsJ5r9XFV/QWKAIE= sha256:lfOjHr8Iz6z6Xlq6bIpGxJS+d19QMuOfX0mMR7A95lA=
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 - Thu, 4 Apr 2024 11:20 UTC

Richard Kettlewell <invalid@invalid.invalid> wrote or quoted:
>I’ve been familiar with both for years and I think the Python version is
>awful; in particular the ordering is a bizarre choice.

The way this syntax is set up is apparently credited to
this guy named Guido, according to this PEP 308 thing.

Now, in English, we usually throw a comma in there when an
"if" clause comes first, 'cause it kinda throws off the normal
flow, you know? So that shows the default position for "if"
is actually after the main part. - Maybe Guido was making that
same kind of comparison to English, and that's why he decided
the post-"if" format works better.

In my example here, there were a whole bunch of these operators
all nested inside each other without any parentheses. 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.

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

<uumb6s$maqq$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2337&group=comp.lang.misc#2337

  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: chris@mshome.net (Chris Elvidge)
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 14:50:19 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <uumb6s$maqq$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 04 Apr 2024 13:50:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="278cab86292d38fe0e0825a92f284e3b";
logging-data="731994"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/DL6q3Gj0aaI1WsmjxKaomPOvbsXeW2Hw="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:mx97uUoHVbNFkq4z3kRyKD07dZ8=
In-Reply-To: <uuj11l$3pqbb$1@dont-email.me>
Content-Language: en-GB
 by: Chris Elvidge - Thu, 4 Apr 2024 13:50 UTC

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".

--
Chris Elvidge, England
I WILL NOT BE A SNICKERPUSS.


devel / comp.lang.misc / Command Languages Versus Programming Languages

Pages:12345678910111213
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor