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

Brendan Eich brendan at
Tue Oct 14 13:36:14 PDT 2008

On Oct 14, 2008, at 12:39 PM, Waldemar Horwat wrote:
> PS.  What does lambda(x = y){...}() mean?  Is it different from  
> lambda(x){...}(y)?


>  What does lambda(x = y){...}(z) do when z is undefined?

Passes undefined bound to x. Undefined is not the same as missing.

These are my answers based on past default parameter proposals from  
ES4 which met with approval at the Oslo meeting. Others will no doubt  
shout if they seem wrong.


More information about the Es-discuss mailing list