Deutsch   English   Français   Italiano  
<v64uv5$2erlp$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: Thu, 4 Jul 2024 01:47:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <v64uv5$2erlp$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>
	<v62497$1rh22$1@dont-email.me> <87ed8bjpoj.fsf@nightsong.com>
	<v62n5g$22598$1@dont-email.me> <87y16ii5i6.fsf@nightsong.com>
	<v64o27$2dnqo$3@dont-email.me> <87tth6hsfs.fsf@nightsong.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 04 Jul 2024 03:47:17 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c455704f93161f76beb27198f91da8a6";
	logging-data="2584249"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+tdmG5gOThzPkIEaEQ7BGF"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:2JMAwwddMDL/Cq8/rlxYPAZABCU=
Bytes: 1804

On Wed, 03 Jul 2024 18:11:35 -0700, Paul Rubin wrote:

> In Haskell, max always
> takes two args of an ordered type, and maximum takes a list arg.
> maximum [2] gives 2 but maximum [] throws an empty list exception.
> maximum just applies max repeatedly, like using reduce in Lisp.

Seems unnecessary to have two functions when one will do.

> ... for the variadic versions in CL and Scheme, (max 2) gives 2
> but (max) throws a wrong-number-of-args error.

I will admit, Python doesn’t like an empty argument list for max and min 
either.

But then, Python max and min work for things besides numbers.