Revenge of the double-curly [Was: return when desugaring to closures]
Brendan Eich
brendan at mozilla.org
Fri Oct 10 12:05:13 PDT 2008
On Oct 10, 2008, at 11:58 AM, P T Withington wrote:
> ? If so, perhaps you can see how I might imagine that:
>
> function foo () {{
> var bar = ...;
> }}
>
> might be sugar for:
>
> function foo () {
> let bar = ...;
> }
Nope, not compatible and not what I meant.
Just the function's name is let-bound (block-scoped) for a function
defined directly in a block.
/be
More information about the Es-discuss
mailing list