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: <20240329084454.0000090f@gmail.com> <20240329101248.556@kylheku.com> <20240329104716.777@kylheku.com> <20240330112105.553@kylheku.com> <87r0fp8lab.fsf@tudado.org> <87wmpg7gpg.fsf@tudado.org> <20240402084057.881@kylheku.com> <86h6gjpq3i.fsf_-_@williamsburg.bawden.org> <86cyr6pb2l.fsf@williamsburg.bawden.org> <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 wrote: > Lawrence D'Oliveiro 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