return when desugaring to closures

Brendan Eich brendan at mozilla.com
Sat Oct 11 11:59:40 PDT 2008


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

/be


More information about the Es-discuss mailing list