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


* Lawrence Troxler
| Just jumping in here - this means, then, that lambda is actually
| equivalent to #', in the same way quote is equivalent to '?

no, that's not it.  #'x is read as (function x).  'x is read as (quote x).
you can easily see this by evaluating (car (read)) and typing in each form.

`lambda' is now a macro that wraps itself in a `function' form.  this means
that (lambda (x) (+ x x)) evaluates to (function (lambda (x) (+ x x))),
which is what would be read if you typed #'(lambda (x) (+ x x)), so you can
omit the #' from `lambda' forms with no visible effects in normal code.

#\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.