Deutsch   English   Français   Italiano  
<v62497$1rh22$1@dont-email.me>

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: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.lisp
Subject: Re: Why don't people like lisp?
Date: Tue, 2 Jul 2024 23:59:36 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <v62497$1rh22$1@dont-email.me>
References: <v5nbe0$3he95$1@dont-email.me> <v5nsmf$3nsv3$1@dont-email.me>
	<v5nu23$3obdr$1@dont-email.me> <87msmzjqwi.fsf@nightsong.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 03 Jul 2024 01:59:36 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="cf883433ea21f3408a2b17a5cac6794f";
	logging-data="1950786"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/IUD43ZGNGtxJtFk4RTuy7"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:bJP7lgtwNHA86dq1gJspspQm1W0=
Bytes: 1640

On Tue, 02 Jul 2024 16:49:33 -0700, Paul Rubin wrote:

> Jeff Barnett <jbb@notatt.com> writes:
>
>> In Common Lisp, symbolic constants were defined for the IEEE plus and
>> minus infinities.
> 
> That's pretty horrendous either way (-99999 or -INF) .  Better to return
> an empty list in the event that that the input is empty.

If a function like “max” or “min” is defined to return a number, then it 
makes sense that the maximum of an empty list should be -∞, and the 
minimum should be +∞. Being numbers, they can be compared with other 
numbers in the usual way, and a lot of special cases no longer become 
special.