From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp? Date: Tue, 17 Jun 2014 19:55:03 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA9892AFE21A@DAKIYA1.pegasus.local> References: <87d2e78nn7.fsf@gmail.com> <87bntr8jtc.fsf@gmail.com> <155DEC68569B714B86C2C7075F5EDA9892AFE1CD@DAKIYA1.pegasus.local> <878uov8ieo.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1403034948 21820 80.91.229.3 (17 Jun 2014 19:55:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2014 19:55:48 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Nicolas Petton Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 17 21:55:38 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 1WwzTk-0003vp-7r for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Jun 2014 21:55:36 +0200 Original-Received: from localhost ([::1]:53106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwzTj-00071c-VC for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Jun 2014 15:55:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwzTK-0006mg-A3 for help-gnu-emacs@gnu.org; Tue, 17 Jun 2014 15:55:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwzTE-00031i-2c for help-gnu-emacs@gnu.org; Tue, 17 Jun 2014 15:55:10 -0400 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:49287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwzTD-0002zf-W3 for help-gnu-emacs@gnu.org; Tue, 17 Jun 2014 15:55:04 -0400 Original-Received: from dakiya1.pegasus.local ([172.16.208.201]) by DAKIYA1.pegasus.local ([172.16.208.201]) with mapi id 14.02.0247.003; Tue, 17 Jun 2014 15:55:03 -0400 Thread-Topic: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp? Thread-Index: AQHPik+X5Yb4qbZdPUSVCvjMG6s2Rpt1jsKJgABVyoD//8IZMIAARmWA///G6pA= In-Reply-To: <878uov8ieo.fsf@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 207.246.209.200 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:98317 Archived-At: > -----Original Message----- > From: Nicolas Petton=20 > Subject: Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs > Lisp? >=20 > Doug Lewan writes: >=20 > > While I won't make assertions about how Emacs Lisp as a language > should be, I am comfortable saying that I write code like the following > a lot: > > > > (delete nil (mapcar ...)) >=20 > Do you mean that you are ok with using the above or that you'd like to > have remove-if built into the language? >=20 I only wanted to say that (*-if) would be very natural. No language is perfect, if only because size versus completeness will never= have a balance that makes everyone happy. (Think: assembler on one end and= ADA on the other (or, gasp! Wolfram).) This is a compromise every programm= er lives with. Emacs Lisp has a pretty good library, but is big enough that= I still find new things just stumbling through the *Info*. ,Douglas Douglas Lewan Shubert Ticketing (201) 489-8600 ext 224 LISP: The most intelligent way to misuse a computer.