From: Drew Adams <drew.adams@oracle.com>
To: bruce.connor.am@gmail.com
Cc: Alan Mackenzie <acm@muc.de>, emacs-devel <emacs-devel@gnu.org>
Subject: RE: Rationalising c[ad]\{2,5\}r.
Date: Wed, 11 Mar 2015 18:51:45 -0700 (PDT) [thread overview]
Message-ID: <50545da4-91f3-41fc-b408-07668ffc2f19@default> (raw)
In-Reply-To: <CAAdUY-+p0kwavTcjuv5SK-9r3Xkut3+EyuWZVWXUcFN1=2AikQ@mail.gmail.com>
> >> 1. caar, cadr, cdar, and cddr are defined in subr.el;
> >> 2. c[ad]\{3,4\}r are actually called cl-caaar, etc;
> >
> > Gag. Why is that?
>
> My guess is that these were initially defined in `cl.el' (which,
> if that's the case, I agree was a mistake),
It doesn't much matter where they were defined. They are basic
Lisp. Who cares where `setq' is defined, in terms of modularity
or namespaces?
> and afterwards all cl functions were renamed to `cl-' prefixes by
> cl-lib (in the process of abolishing `cl.el').
That was an even bigger mistake - doing that systematically, I mean.
`cl-car', `cl-cdr',... Sheesh - what silliness.
Also: bug #20056: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20056
`car' is Lisp. It is not special to Common Lisp.
`letf' is Emacs Lisp. It is not Common Lisp.
Neither should get the `cl-' prefix. Neither is emulating
Common Lisp, and neither is confusable with something else
already existing in Emacs Lisp.
> >> and there will be compatibility aliases for cl-caaadr etc..
> >
> > Why? Why is that needed?
>
> To not make it harder for developers to support Emacs 24.X
Well, if you mean keeping `caaadr', then yes. It's `cl-caaadr'
that has no raison d'etre. Keep `caaadr'; toss `cl-caaadr'.
No need for any aliasing then to make things easier for
"developers to support Emacs 24.X".
Putting it like you did is trying to make a virtue out of
necessity (or a purse out of a sow's ear, if you prefer).
Given the existence of `cl-caaadr', yes, of course we would
then need to alias `caaadr' to it. Get rid of `cl-caaadr',
and no, no aliasing is needed.
> > Has this slick cl-* paint job perhaps gotten out of hand?
>
> Well, it's not exactly getting worse. It's the same it's always
> been, isn't it?
See above. Yes, this kind of thing is worse, IMHO. And no,
prefix `cl-' has not always been applied to such things.
next prev parent reply other threads:[~2015-03-12 1:51 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-11 21:43 Rationalising c[ad]\{2,5\}r Alan Mackenzie
2015-03-11 22:00 ` Drew Adams
2015-03-11 22:54 ` Artur Malabarba
2015-03-12 1:51 ` Drew Adams [this message]
2015-03-12 9:54 ` Artur Malabarba
2015-03-12 14:01 ` Drew Adams
2015-03-12 4:34 ` Stephen J. Turnbull
2015-03-12 10:15 ` Artur Malabarba
2015-03-12 10:30 ` Alan Mackenzie
2015-03-12 14:03 ` Drew Adams
2015-03-11 22:15 ` Thien-Thi Nguyen
2015-03-11 23:00 ` Alan Mackenzie
2015-03-11 23:36 ` Thien-Thi Nguyen
2015-03-12 1:35 ` Samuel W. Flint
2015-03-12 0:52 ` Artur Malabarba
2015-03-12 8:56 ` Alan Mackenzie
2015-03-12 10:15 ` Artur Malabarba
2015-03-12 13:53 ` Stefan Monnier
2015-03-13 16:41 ` Alan Mackenzie
2015-03-13 16:47 ` Drew Adams
2015-03-13 20:38 ` Stefan Monnier
2015-03-13 21:36 ` Alan Mackenzie
2015-03-13 23:00 ` Stefan Monnier
2015-04-05 13:00 ` Alan Mackenzie
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50545da4-91f3-41fc-b408-07668ffc2f19@default \
--to=drew.adams@oracle.com \
--cc=acm@muc.de \
--cc=bruce.connor.am@gmail.com \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.