[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quoted lambda expressions

From: Pascal J. Bourguignon
Subject: Re: Quoted lambda expressions
Date: Sat, 17 Aug 2013 11:24:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Xue Fuqiao <address@hidden> 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__

reply via email to

[Prev in Thread] Current Thread [Next in Thread]