Revenge of the double-curly [Was: return when desugaring to closures]

P T Withington ptw at pobox.com
Fri Oct 10 05:44:28 PDT 2008


On 2008-10-10, at 02:29EDT, Brendan Eich wrote:

> An agreement from TC39 this past sprint was that function definitions
> directly nested in blocks, not specified by ES3, defined block-local
> (let) bindings.

Holy smokes.  Does that mean we are all going to be writing

   function ... () {{
     ...
   }}

to get 'normal' scoping of function body declarations???  Will `var`  
mean `let` in those double-curly bodies?  Might as well let `let` not  
be a keyword...

Dejá-vu, all over again.


More information about the Es-discuss mailing list