emacs-devel
[Top][All Lists]
Advanced

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

Re: general lazy list facility for Emacs Lisp?


From: Tassilo Horn
Subject: Re: general lazy list facility for Emacs Lisp?
Date: Wed, 23 Mar 2011 21:18:45 +0100
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

Hi Stefan,

> Emacs has had closures for "ever", tho it only closes over variables
> that are bound by `lexical-let' (provided by CL).  Emacs-24 will have
> a more integrated and efficient support for closures, by setting the
> `lexical-binding' variable which makes `let' bind lexically in the
> same way as in Common-Lisp.  You can try it out right now in the
> `lexbind-new' branch which is pretty much ready for inclusion (mostly
> lacks testing, and has currently 1 open bug apparently around eieio;
> additional testers are welcome).

I've started compiling and will report issues if I find one in my daily
use.  I guess, that there are many packages that won't work with
lexical-binding set to t, right?

I mean, at least I've seen code that uses let in order to save some
parameters, like

  (let ((foo "bar"))
    (function-that-does-something-with-foo))

without defvar-ing foo.  I might be wrong, but I think I remember
org-mode did so in some places...

Bye,
Tassilo



reply via email to

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