[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lexical binding and macros.
From: |
Pascal J. Bourguignon |
Subject: |
Re: Lexical binding and macros. |
Date: |
Sun, 12 Dec 2010 18:23:25 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
LanX <lanx.perl@googlemail.com> writes:
> On 12 Dez., 05:10, Barry Margolin <bar...@alum.mit.edu> wrote:
>> In article <mailman.40.1292017369.4804.help-gnu-em...@gnu.org>,
>> Alin Soare <alins...@voila.fr> wrote:
>>
>> > Are the macros and closures equivalent ?
>>
>> No. Emacs Lisp has macros, it doesn't have closures. But in dialects
>> of Lisp that have both, they're completely different.
>
>
> ehm ... isn't "lexical-let" from the common lisp extension supposed to
> support closures?
They're not really closures. Closures are equivalent to objects, so
you can simulate them by creating a kind of object, and this is what
lexical-let does. But given emacs lisp VM, it cannot do it quite
efficiently.
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.
- Lexical binding and macros., Alin Soare, 2010/12/10
- Re: Lexical binding and macros., Barry Margolin, 2010/12/12
- Re: Lexical binding and macros., LanX, 2010/12/13
- Re: Lexical binding and macros.,
Pascal J. Bourguignon <=
- Re: Lexical binding and macros., Stefan Monnier, 2010/12/15
- Re: Lexical binding and macros., Elena, 2010/12/15
- Re: Lexical binding and macros., Pascal J. Bourguignon, 2010/12/15
- Re: Lexical binding and macros., Stefan Monnier, 2010/12/15
- Re: Lexical binding and macros., David Kastrup, 2010/12/15
- Re: Lexical binding and macros., Pascal J. Bourguignon, 2010/12/15
- Re: Lexical binding and macros., Elena, 2010/12/15
- Re: Lexical binding and macros., Stefan Monnier, 2010/12/16