Subject: Re: Returning Functions
From: Erik Naggum <clerik@naggum.no>
Date: 1997/10/06
Newsgroups: comp.lang.lisp
Message-ID: <3085131464469160@naggum.no>


* Barry Perryman
| Ok I'm still learning lisp, but why is the later incorrect?

sigh.  #'(lambda ...) is not _incorrect_.  (where did you get that idea?)

the following three forms have _identical_ semantics in contexts where a
function object is expected.  some Lisp programmers think one of them is
better than the others.  which one they think is better varies according to
the personal taste of each one.  I prefer the former.

    (lambda (x) (+ x x))
    #'(lambda (x) (+ x x))
    (function (lambda (x) (+ x x)))

#\Erik
-- 
if you think this year is "97", _you_ are not "year 2000 compliant".

see http://www.naggum.no/emacs/ for Emacs-20-related material.