emacs-devel
[Top][All Lists]
Advanced

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

RE: 23.1; (elisp)Anonymous Functions - unclear about #'


From: Drew Adams
Subject: RE: 23.1; (elisp)Anonymous Functions - unclear about #'
Date: Fri, 11 Sep 2009 23:13:03 -0700

> > This Info node is unclear. It combines pre-Emacs 22 text that
> > explicitly says that lambda forms are *not* byte-compiled unless you
> > use `#'' or `function', with this statement that says that they are:
> 
> >   Nowadays it is possible to omit `function' entirely, like this:
> >      (defun double-property (symbol prop)
> >        (change-property symbol prop (lambda (x) (* 2 x))))
> >   This is because `lambda' itself implies `function'.
> 
> Thanks for spotting this.
> 
> Hmm---is `function' still useful for anything?

At the very least it is needed for comptability with older Emacs versions. It
needs to be tolerated, at least.





reply via email to

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