return when desugaring to closures

Brendan Eich brendan at
Sat Oct 11 14:43:09 PDT 2008

On Oct 11, 2008, at 12:52 PM, Peter Michaux wrote:

> On Sat, Oct 11, 2008 at 11:59 AM, Brendan Eich <brendan at>  
> 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

I do not see why you are confused. I wrote, in the original  
"ECMAScript Harmony" post:

 > I heard good agreement on low-hanging "de-facto standard" fruit,
 > particularly let as the new var, to match block-scoped const as still
 > proposed (IIRC) in 3.1.


> 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.

It's something else. See my reply about hoisting, just sent.


-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Es-discuss mailing list