shortcuts for defining block-local private names, plays nicely with @foo syntax

Brendan Eich brendan at mozilla.org
Sat Jan 21 16:41:42 PST 2012


> Brendan Eich <mailto:brendan at mozilla.org>
> January 21, 2012 4:39 PM
>
> Er, const, I hope -- not let. Right?

And _the_real_foo should be expanded:

   {
     private foo;
     ...
   }

desugars to

   {
     const foo = Name.create("foo");
     ...
   }

with Name.create imported appropriately.

/be


More information about the es-discuss mailing list