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

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

Path: ...!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: Wed, 3 Apr 2024 20:57:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <20240403134752.491@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>
Injection-Date: Wed, 03 Apr 2024 20:57:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3731bd2a32f4bb5c9f2d85a787cad4a9";
	logging-data="170890"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18nl2+FahGfbfcMDcqwlj6tuCxjX9bl/nQ="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:62eMW8cm8bTiRUOh6hbHRxob6QQ=
Bytes: 2554

On 2024-04-03, Alan Bawden <alan@csail.mit.edu> wrote:
> Lisp doesn't really have statements _because_ McCarthy invented the
> conditional expression.  That's kind of the point.  Other programming
> languages at the time (e.g. FORTRAN and ALGOL) only had conditional
> statements.  McCarthy invented the conditional expression and thus
> created the first expression-only programming language.

However, conditional expressions ultimately come from math. E.g for
specifying a discontinuous function:

   f(x) = { x, if x >= 0
          { 0, if x < 0
 
If you think about it, it's actually kind of ignorant to invent a
programming language with imperative if statements, but in which where
the math conditional is missing.

> People sometimes sloppily say that "McCarthy invented the
> if-expression", by which they really mean just (1).  It is also true

That could be the origin of the misconception; someone is going to
take that sort of statement literally.

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