For Loop Desugaring (was: return when desugaring to closures)

Brendan Eich brendan at
Tue Oct 14 10:07:35 PDT 2008

On Oct 14, 2008, at 7:17 AM, David-Sarah Hopwood wrote:

>> Requirement 3 is met because var hoists to the enclosing function.
> Assuming that var hoisting is done before this expansion, yes.

Absolutely -- var hoisting across lambdas to preserve TCP is prior  
magic, assumed by the (revised) lambda proposal. In principle it could  
be lambda coded but I don' t believe the result would be particularly  


More information about the Es-discuss mailing list