emacs-devel
[Top][All Lists]
Advanced

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

Re: Should lexical-let use let in the situation lexical-binding is t ?


From: Stefan Monnier
Subject: Re: Should lexical-let use let in the situation lexical-binding is t ?
Date: Wed, 19 Sep 2012 15:01:20 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

>     This said, there can be good reasons to force a lexical binding, when
>     you fear that the code might be run in a context where the variable
>     might happen to be defvar'd.
> I am very skeptical of that claim.  It seems to me that if your local
> variable is defvar'd by some other code, that is a kind of name
> collision and that other code should use a different name which isn't
> likely to collide with local variables.

Agreed, but you can't always control "other code".
This said, I don't know of any situation where lexical-let was used for
that reason.


        Stefan



reply via email to

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