From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp? Date: Wed, 18 Jun 2014 10:43:03 -0400 Organization: A noiseless patient Spider Message-ID: References: <87d2e78nn7.fsf@gmail.com> <87bntr8jtc.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1403102739 23941 80.91.229.3 (18 Jun 2014 14:45:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2014 14:45:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 16:45:30 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WxH72-0003Lp-ON for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 16:45:20 +0200 Original-Received: from localhost ([::1]:57827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxH72-0004uj-CV for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 10:45:20 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="13665"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Ye8TyijzCSC+3DN85azxO" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:BQ0jOvdg4FVlxSZPc6Ad0SVGGpM= Original-Xref: usenet.stanford.edu gnu.emacs.help:206065 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98336 Archived-At: In article , Nicolas Petton wrote: > Stefan Monnier 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 ***