[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?
From: |
Barry Margolin |
Subject: |
Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp? |
Date: |
Wed, 18 Jun 2014 10:43:03 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <mailman.3879.1403089222.1147.help-gnu-emacs@gnu.org>,
Nicolas Petton <petton.nicolas@gmail.com> wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
> >>>> Emacs Lisp is a great Lisp dialect, but I miss `find`, `find-if`,
> >>>> `remove-if`, etc. iteration functions a lot. Sure, I can require cl-lib
> >>>> or use dash, but I'm wondering why these functions are not part of the
> >>>> base language?
> >>> Not sure what you mean. Most languages I know provide list operations
> >>> via libraries. Why should Elisp be different?
> >> What I mean is that Elisp do not have `remove-if`
> >
> > Of course it does, tho it calls it `cl-remove-if'.
>
> Yes, but what I meant was that there is no filtering function in Elisp
> itself (cl-remove-if is part of cl-lib).
>
> But Barry's answer explains it. Now I'm wondering if it would make sense
> to have such functions in Elisp itself?
Why? Just to avoid having to do (require 'cl)? Or are you suggesting
that they should be rewritten in C and made primitive subrs?
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
- Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Nicolas Petton, 2014/06/17
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Stefan Monnier, 2014/06/17
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Nicolas Petton, 2014/06/17
- RE: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Doug Lewan, 2014/06/17
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Nicolas Petton, 2014/06/17
- RE: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Doug Lewan, 2014/06/17
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Stefan Monnier, 2014/06/17
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Nicolas Petton, 2014/06/18
- Message not available
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Stefan Monnier, 2014/06/18
- Message not available
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?,
Barry Margolin <=
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Damien Cassou, 2014/06/18
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Phillip Lord, 2014/06/18
- Message not available
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Christoph Wedler, 2014/06/24
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Barry Margolin, 2014/06/24
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Stefan Monnier, 2014/06/24
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Leo Liu, 2014/06/25
- Message not available
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Stefan Monnier, 2014/06/25
- Message not available
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Christoph Wedler, 2014/06/25
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Stefan Monnier, 2014/06/25
- Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?, Stefan Monnier, 2014/06/25