| Deutsch English Français Italiano |
|
<87tth6hsfs.fsf@nightsong.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin <no.email@nospam.invalid> Newsgroups: comp.lang.lisp Subject: Re: Why don't people like lisp? Date: Wed, 03 Jul 2024 18:11:35 -0700 Organization: A noiseless patient Spider Lines: 9 Message-ID: <87tth6hsfs.fsf@nightsong.com> 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> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Thu, 04 Jul 2024 03:11:36 +0200 (CEST) Injection-Info: dont-email.me; posting-host="7141b374169c5e86e3f3381b7c9b90bd"; logging-data="2564348"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JY3VV8iK2A5EtH+6cMLZV" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:YRJ7lHVHuo/zSwp3PLY05lrK8Eo= sha1:SqO1XcOCF/RA2vmyr0KtykUWK/o= Lawrence D'Oliveiro <ldo@nz.invalid> writes: >> max is a two-argument function, just like +. > Not in all the good languages. Ah ok, yeah for the variadic versions in CL and Scheme, (max 2) gives 2 but (max) throws a wrong-number-of-args error. 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.