From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp? Date: Wed, 18 Jun 2014 17:31:35 +0100 Message-ID: <87d2e6tc0o.fsf@newcastle.ac.uk> 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 1403110311 27710 80.91.229.3 (18 Jun 2014 16:51:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2014 16:51:51 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" , Barry Margolin To: Damien Cassou Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 18:51:43 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 1WxJ5I-00052g-FD for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 18:51:40 +0200 Original-Received: from localhost ([::1]:59290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxJ5I-0002Cj-47 for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 12:51:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxIm7-0003Zh-8W for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 12:31:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxIlw-0005tb-Sw for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 12:31:51 -0400 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:50016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxIlw-0005ia-Ny for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 12:31:40 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1WxIls-0007JE-E3; Wed, 18 Jun 2014 17:31:36 +0100 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1WxIls-0007vr-7I; Wed, 18 Jun 2014 17:31:36 +0100 In-Reply-To: (Damien Cassou's message of "Wed, 18 Jun 2014 17:43:57 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 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:98339 Archived-At: Damien Cassou writes: > 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. I think that dash addresses most of these. The namespacing is minimal (with a -) and it's not particularly large, although in these days of fast machines, I am not sure that "large" is such a problem as it might have been in the past. I am often surprised by how much emacs can do nowadays which would have been slow before. Phil