From: Christoph Wedler <christoph.wedler@sap.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp?
Date: Tue, 24 Jun 2014 15:51:49 +0200 [thread overview]
Message-ID: <wfker42etnyi.fsf@sap.com> (raw)
In-Reply-To: mailman.3896.1403106263.1147.help-gnu-emacs@gnu.org
Damien Cassou <damien.cassou@gmail.com> writes:
> On Wed, Jun 18, 2014 at 4:43 PM, Barry Margolin <barmar@alum.mit.edu> 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.
Indeed, the "cl-" prefix is very weird. I would consider almost all CL
functions core, with the exception of (cl-)loop.
Btw, in Emacs-24.3, syntax highlighting does not work for cl-defstruct,
but defstruct.
To be honest, I do not fully understand why Emacs has such an anti-CL
policy.
Sometimes, you hear the "namespace argument" ("polution"): Well, to put
that into perspective, you might want to check the EMACS/etc/NEWS*
files. There, you see quite a few "new function" announcements without
extra namespace, quite a few are actually the CL functions... (repeated
"namespace polutions" are IMHO worse than one bigger one).
Regards,
Christoph
next prev parent reply other threads:[~2014-06-24 13:51 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-17 17:13 Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp? Nicolas Petton
2014-06-17 17:28 ` Stefan Monnier
2014-06-17 18:36 ` Nicolas Petton
2014-06-17 18:56 ` Doug Lewan
2014-06-17 19:06 ` Nicolas Petton
2014-06-17 19:55 ` Doug Lewan
2014-06-17 22:16 ` Stefan Monnier
2014-06-18 11:00 ` Nicolas Petton
[not found] ` <mailman.3879.1403089222.1147.help-gnu-emacs@gnu.org>
2014-06-18 14:36 ` Stefan Monnier
2014-06-18 14:43 ` Barry Margolin
2014-06-18 15:43 ` Damien Cassou
2014-06-18 16:31 ` Phillip Lord
[not found] ` <mailman.3896.1403106263.1147.help-gnu-emacs@gnu.org>
2014-06-24 13:51 ` Christoph Wedler [this message]
2014-06-24 16:24 ` Barry Margolin
2014-06-25 3:22 ` Stefan Monnier
2014-06-25 4:08 ` Leo Liu
[not found] ` <mailman.4252.1403669342.1147.help-gnu-emacs@gnu.org>
2014-06-25 13:46 ` Stefan Monnier
[not found] ` <mailman.4251.1403666567.1147.help-gnu-emacs@gnu.org>
2014-06-25 10:24 ` Christoph Wedler
2014-06-25 13:35 ` Stefan Monnier
2014-06-25 14:09 ` Stefan Monnier
2014-06-25 15:37 ` Barry Margolin
2014-06-25 23:44 ` Robert Thorpe
2014-06-18 14:43 ` Pascal J. Bourguignon
[not found] ` <mailman.3837.1403026153.1147.help-gnu-emacs@gnu.org>
2014-06-20 0:20 ` WJ
2014-06-20 13:45 ` Stefan Monnier
[not found] <mailman.3836.1403025251.1147.help-gnu-emacs@gnu.org>
2014-06-17 21:42 ` Barry Margolin
[not found] <mailman.4322.1403739913.1147.help-gnu-emacs@gnu.org>
2014-06-26 0:37 ` Stefan Monnier
2014-06-26 5:27 ` Barry Margolin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wfker42etnyi.fsf@sap.com \
--to=christoph.wedler@sap.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).