January 19 meeting notes

Andy Wingo wingo at igalia.com
Mon Jan 23 01:12:26 PST 2012


On Fri, 2012-01-20 at 19:19 +0100, Andreas Rossberg wrote:
> How is
> 
>   function(x) { let x }
> 
> any different in this respect from
> 
>   { let x { let x } }

In the former, there is no part of the body in which the parameter is
visible (modulo arguments, of course).  I can see how that might be
confusing if the "let" appears later in the function:

   function(x) { bar(x) ... ... let x = 2; ... }

Of course, the same argument applies to blocks, but in that case there
is more syntactic uniformity.

Andy


More information about the es-discuss mailing list