Deutsch   English   Français   Italiano  
<20240403204733.866@kylheku.com>

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

Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Kaz Kylheku <643-408-1753@kylheku.com>
Newsgroups: comp.lang.lisp
Subject: Re: Lisp history: IF, etc.
Date: Thu, 4 Apr 2024 03:53:00 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <20240403204733.866@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>
 <20240402084057.881@kylheku.com>
 <86h6gjpq3i.fsf_-_@williamsburg.bawden.org>
 <m3frw2vlok.fsf@leonis4.robolove.meer.net>
 <86cyr6pb2l.fsf@williamsburg.bawden.org> <uukr0q$7l0i$1@dont-email.me>
 <86v84xoo69.fsf@williamsburg.bawden.org>
Injection-Date: Thu, 04 Apr 2024 03:53:00 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c584e056168df3e72ae6023a5eb1af29";
	logging-data="461039"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/hk2ES1/OGRbqIupyx+TBWvmtI+TfTd58="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:oxZSbVQzNHcNOxRR2jj826/WGM8=
Bytes: 2562

On 2024-04-04, Alan Bawden <alan@csail.mit.edu> wrote:
> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>
>    On Wed, 03 Apr 2024 14:15:14 -0400, Alan Bawden wrote:
>
>    > Other programming languages at the time (e.g. FORTRAN and ALGOL) only
>    > had conditional statements.
>
>    Algol60 had if-expressions, e.g.
>
>        a := if b then c else d
>
> Ah yes, the history is slightly more complicated than I remembered.
> Algol 58 did not have conditional expressions.  But McCarthy then joined
> the Algol committee and he suggested that they add conditional
> expressions.  And so they do appear in Algol 60.

Aha, that could also be the source of the idea that MacCarthy came up
with the ternary IF. (Is it documented whether he actually suggested the
three-operand one, or something more COND like that the committee
whittled down to the above form?)

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