Why don't people like lisp?
Matthew Danish
mdanish at andrew.cmu.edu
Wed Oct 22 20:41:30 EDT 2003
On Wed, Oct 22, 2003 at 09:52:42AM -0700, Jock Cooper wrote:
> One of the important differences is that MY-FUNC is lexically isolated
> from the environment where WITH-OPEN-FILE appears. The macro version
> does not suffer this; and it is often convenient for the code block
> in the WITH-OPEN-FILE to access that environment.
(call-with-open-file
#'(lambda (stream)
...)
"somefile"
:direction :input)
WITH-OPEN-FILE happens to be one of those macros which doesn't require
compile-time computation, but rather provides a convenient interface to
the same functionality as above.
--
; Matthew Danish <mdanish at andrew.cmu.edu>
; OpenPGP public key: C24B6010 on keyring.debian.org
; Signed or encrypted mail welcome.
; "There is no dark side of the moon really; matter of fact, it's all dark."
More information about the Python-list
mailing list