guile-devel
[Top][All Lists]
Advanced

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

Re: Elisp flet construct


From: Andy Wingo
Subject: Re: Elisp flet construct
Date: Thu, 23 Jul 2009 22:46:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

On Tue 21 Jul 2009 15:10, Daniel Kraft <address@hidden> writes:

> Just a little addition to the subject of extensions:  I'd very much like
> to add lexical-let and lexical-let* as another set of extensions,
> because this gives the possibility to use "fast" lexical variables
> without the dynamic-scoping-fluid-pain.

Yes, yes. I totally agree. This allows stack allocation of the variables
as well, which can be a significant speed win (because of not making so
much garbage).

> Currently, I did implement some control constructs that could be done as
> macros still in the compiler directly (like prog1 or dolist) because
> there I can make use of lexical helper variables; lexical-let would
> allow using this feature directly from elisp (and implementing these
> constructs equivalently as macros).
>
> So, what do you think about this extension?

I think it sounds great!

Andy
-- 
http://wingolog.org/




reply via email to

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