| Deutsch English Français Italiano |
|
<871q49vsse.fsf@bsb.me.uk> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse <ben@bsb.me.uk> Newsgroups: comp.lang.lisp Subject: Re: Why don't people like lisp? Date: Thu, 04 Jul 2024 20:52:33 +0100 Organization: A noiseless patient Spider Lines: 17 Message-ID: <871q49vsse.fsf@bsb.me.uk> 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> <v64uv5$2erlp$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Thu, 04 Jul 2024 21:52:34 +0200 (CEST) Injection-Info: dont-email.me; posting-host="b0d7afae60ab6b97749d31579332c9a3"; logging-data="3047141"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JpazngK1KJH0gV4FYkkK3YxXjWxeOPaI=" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:dcr/OeEO9W4CR+9t7ibff1mzDuY= sha1:dcDjuMB558kIuJQUNVdVMixqi4E= X-BSB-Auth: 1.b77543c59c3f806eafeb.20240704205233BST.871q49vsse.fsf@bsb.me.uk Bytes: 1923 Lawrence D'Oliveiro <ldo@nz.invalid> writes: > 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. Haskell is a typed language so the two functions are quite different, though the list version can be trivially defined from the binary function. -- Ben.