[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What's missing in ELisp that makes people want to use cl-lib?
|
From: |
Augusto Stoffel |
|
Subject: |
Re: What's missing in ELisp that makes people want to use cl-lib? |
|
Date: |
Mon, 20 Nov 2023 15:56:36 +0100 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Sat, 18 Nov 2023 at 06:58, Gerd Möllmann wrote:
> And of course we're not a millimeter closer to answering the question
> why seq.el should replace cl-lib.
I think the original question was, why do you need an extra library of
basic list processing functions in a LISt Processing language... Also,
assuming performance is indeed crucial, shouldn't they be implemented in
C?
The vocabulary missing from the built-ins is pretty small. The
following are the fundamental ones IMO:
- filter aka remove-if-not
- some
(reduce is also academically fundamental, but I guess dolist is the more
idiomatic replacement.)
The following I would count as nice-to-haves:
- drop (already exists under a funny name)
- drop-while (basically like `member' with a different TESTFN)
- take-while
- perhaps find and position (those are small variations on `some')
The rest of seq I would count as "sporadically handy" (seq-partition,
seq-mapn, etc) or "pretty much unnecessary" (seq-difference,
seq-intersection, etc).
- Re: What's missing in ELisp that makes people want to use cl-lib?, (continued)
- Re: What's missing in ELisp that makes people want to use cl-lib?, Gerd Möllmann, 2023/11/17
- Re: What's missing in ELisp that makes people want to use cl-lib?, Gerd Möllmann, 2023/11/16
- Re: What's missing in ELisp that makes people want to use cl-lib?, Dmitry Gutov, 2023/11/16
- Re: What's missing in ELisp that makes people want to use cl-lib?, Stefan Monnier, 2023/11/16
- Re: What's missing in ELisp that makes people want to use cl-lib?, Dmitry Gutov, 2023/11/16
- Re: What's missing in ELisp that makes people want to use cl-lib?, Eli Zaretskii, 2023/11/17
- Re: What's missing in ELisp that makes people want to use cl-lib?, Gerd Möllmann, 2023/11/17
- Re: What's missing in ELisp that makes people want to use cl-lib?, Eli Zaretskii, 2023/11/17
- Re: What's missing in ELisp that makes people want to use cl-lib?, Stefan Monnier, 2023/11/17
- Re: What's missing in ELisp that makes people want to use cl-lib?, Gerd Möllmann, 2023/11/18
- Re: What's missing in ELisp that makes people want to use cl-lib?,
Augusto Stoffel <=
- Re: What's missing in ELisp that makes people want to use cl-lib?, Gerd Möllmann, 2023/11/17
- PCL [Re: What's missing in ELisp that makes people want to use cl-lib?, Madhu, 2023/11/20
- Re: PCL [Re: What's missing in ELisp that makes people want to use cl-lib?, João Távora, 2023/11/20
- Re: PCL [Re: What's missing in ELisp that makes people want to use cl-lib?, Gerd Möllmann, 2023/11/20
- Re: What's missing in ELisp that makes people want to use cl-lib?, Dmitry Gutov, 2023/11/16
- Re: What's missing in ELisp that makes people want to use cl-lib?, Dmitry Gutov, 2023/11/20
- Re: What's missing in ELisp that makes people want to use cl-lib?, Michael Heerdegen, 2023/11/16
- Re: What's missing in ELisp that makes people want to use cl-lib?, João Távora, 2023/11/16
- Re: What's missing in ELisp that makes people want to use cl-lib?, Michael Heerdegen, 2023/11/16
- Re: What's missing in ELisp that makes people want to use cl-lib?, João Távora, 2023/11/16