From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Damien Cassou Newsgroups: gmane.emacs.help Subject: Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp? Date: Wed, 18 Jun 2014 17:43:57 +0200 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; charset=ISO-8859-1 X-Trace: ger.gmane.org 1403106285 6057 80.91.229.3 (18 Jun 2014 15:44:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2014 15:44:45 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Barry Margolin Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 17:44:39 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 1WxI2L-0008G3-Ni for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 17:44:33 +0200 Original-Received: from localhost ([::1]:58257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxI2L-0004kw-Ar for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 11:44:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxI28-0004i7-5M for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 11:44:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxI26-0006Ux-Va for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 11:44:20 -0400 Original-Received: from mail-oa0-x235.google.com ([2607:f8b0:4003:c02::235]:53353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxI26-0006Uh-RQ for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 11:44:18 -0400 Original-Received: by mail-oa0-f53.google.com with SMTP id l6so2256097oag.12 for ; Wed, 18 Jun 2014 08:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Lw9owO4tNbe46VOLtotx0HrTL3T3fAvpsoZTLGDaxkw=; b=uchYb90gxsURqB8shlQDaWVj7LGuH/wHAer+I6iVzqaZoNubF9JI+9t2cIl6aN3bch WWGiWv6yBoqQfiOAX0pPr9mb2ddhUApF0kycdBLcLE6JsFRNDJO8e3FxiaUhA0/kdzJ0 LyH/PY87IkAJCpAwCVRxXucmoWhdMaB4gXlGLGfzdN5NSzWV9079+ypOIcI8Y7zaFYlk XiDqJga82vWjwZtuqDgYiS88rNI9cSPka1GCQTQQ7O7Vsv6bC06yW/u8DMqjHobEsOJf UFG2lPEcK3hV1DrYdQ2yanYW+e7pzluLPEDaUwN0BfzVfvZ58FR17z4sC7BAfOhudvIs 0fTw== X-Received: by 10.60.133.203 with SMTP id pe11mr2855789oeb.24.1403106257648; Wed, 18 Jun 2014 08:44:17 -0700 (PDT) Original-Received: by 10.182.149.9 with HTTP; Wed, 18 Jun 2014 08:43:57 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::235 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:98338 Archived-At: On Wed, Jun 18, 2014 at 4:43 PM, Barry Margolin wrote: > Why? Just to avoid having to do (require 'cl)? Or are you suggesting > that they should be rewritten in C and made primitive subrs? > I think Nicolas' problem is not the language in which the functions are implemented. In my opinion, the problems are: - that a (large) library must be loaded to have these 2 core functions (select a subset of elements, select one element). And this library is not required for similar functions like mapcar - that the name of the cl-lib functions are all prefixed by 'cl-' which makes them look weird for core functions I don't think Nicolas cares about the exact same features as cl-remove-if and cl-find-if. A very simple alternative (i.e., without the &rest cl-keys) would do the job. -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill