From: "Pascal J. Bourguignon" <pjb@informatimago.com>
To: emacs-devel@gnu.org
Subject: Re: Quoted lambda expressions
Date: Sat, 17 Aug 2013 11:24:00 +0200 [thread overview]
Message-ID: <87d2pcllfz.fsf@informatimago.com> (raw)
In-Reply-To: CAAF+z6GEXVC-5pRKiPcC9f0k8Zdb_1MxYiK50UrghRgn2_bUGQ@mail.gmail.com
Xue Fuqiao <xfq.free@gmail.com> writes:
> AFAIK "(function (lambda ...))" and "#'(lambda ...)" are the same as
> "(lambda ...)", because in subr.el:
>
> (defmacro lambda (&rest cdr)
> [...]
> (list 'function (cons 'lambda cdr)))
>
> But the first two forms are used 600+ times in lisp/ and 13 times in
> doc/. Does it make sense to do some cleanup?
>
> (And some of them should not be changed, such as the one in "(elisp)
> Anonymous Functions".)
That lambda macro was a late addition in the standardization of Common
Lisp. I assume it was similarly late in emacs lisp. That's the reason
why some lisp programmers use #'(lambda …) instead of (lambda …).
--
__Pascal Bourguignon__
http://www.informatimago.com/
next prev parent reply other threads:[~2013-08-17 9:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-17 8:32 Quoted lambda expressions Xue Fuqiao
2013-08-17 9:24 ` Pascal J. Bourguignon [this message]
2013-08-17 9:36 ` Andreas Schwab
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=87d2pcllfz.fsf@informatimago.com \
--to=pjb@informatimago.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.