emacs-devel
[Top][All Lists]
Advanced

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

Re: [elpa] master 68bcf86 2/4: package/names: :group can be given a list


From: David Kastrup
Subject: Re: [elpa] master 68bcf86 2/4: package/names: :group can be given a list
Date: Mon, 12 Jan 2015 19:13:37 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

"Stephen J. Turnbull" <address@hidden> writes:

> Nicolas Richard writes:
>  > "Stephen J. Turnbull" <address@hidden> writes:
>  > 
>  > > Stefan Monnier writes:
>  > >
>  > >  > Just like we don't like '(lambda ...), we don't like '(... (lambda 
> ...)
>  > >  > ...) either (tho it's still found at many places in Emacs's source 
> code
>  > >  > since you can't "grep" for it quite as easily).  Better use
>  > >  > `(... ,(lambda ...) ...) instead, so the lambda is byte-compiled.  
>  > >
>  > > Doesn't Emacs support #', and wouldn't that be more readable?
>  > 
>  > I don't think it will help :
>  > `(... ,#'(lambda ...) ...) doesn't look more readable and
>  > #'(... (lambda ...) ...) would be wrong
>
> I'm suggesting
>
>     '(... #'(lambda ...) ...)
>
> to tell the byte-compiler that the lambda expression is a function,
> and can be replaced by an equivalent function (ie, the byte-compiled
> version).

That's equivalent to

'(... (function (lambda ...)) ...)

with (function (lambda ...)) being a quoted list rather than a function.
Nothing to do here for the bytecompiler.

-- 
David Kastrup



reply via email to

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