From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp? Date: Wed, 18 Jun 2014 10:36:37 -0400 Organization: A noiseless patient Spider Message-ID: References: <87d2e78nn7.fsf@gmail.com> <87bntr8jtc.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1403102426 19134 80.91.229.3 (18 Jun 2014 14:40:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2014 14:40:26 +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:40:19 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 1WxH28-0006Nt-Ui for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 16:40:17 +0200 Original-Received: from localhost ([::1]:57793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxH28-0000Y4-G6 for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 10:40:16 -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!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Injection-Info: mx05.eternal-september.org; posting-host="bd19462299dd32dcc7fc179ab8a1ae48"; logging-data="14733"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19R/2LKWmc0qurjyvINJDe0" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:PGswmQx/DEA9+tFrFTW1WI0zp28= sha1:VQrXsxYOaxE531rmtCiABYI18Qg= Original-Xref: usenet.stanford.edu gnu.emacs.help:206064 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:98335 Archived-At: >>>>> 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). And as I said, it's generally considered normal that list manipulation functions (such as remove-if) are not part of the core language but are instead provided via libraries (such as `cl-lib'). > But Barry's answer explains it. Now I'm wondering if it would make sense > to have such functions in Elisp itself? So, fundamentally, it's just the (require cl-lib) that annoys you? Stefan