return when desugaring to closures

Peter Michaux petermichaux at gmail.com
Sat Oct 11 12:52:57 PDT 2008


On Sat, Oct 11, 2008 at 11:59 AM, Brendan Eich <brendan at mozilla.com> wrote:
> On Oct 11, 2008, at 9:05 AM, Peter Michaux wrote:
>
>> How to define a variable that is local to the enclosing lambda? Isn't
>> the ability to do that essential?
>
> Use let (the var replacement declaration form).

Sounds good to me but it is a little confusing to keep track if "let"
is either in or out of ES-Harmony and if it is partly in then which of
the several JavaScript 1.7 uses are in and if there will be "let",
"let*", "letrec" semantics.

Peter


More information about the Es-discuss mailing list