Self-recursion and arrow functions

Brendan Eich brendan at mozilla.com
Sat Mar 16 16:32:45 PDT 2013


Allen Wirfs-Brock wrote:
> regarding using 'arguments' within arrow functions, I would be 
> sympathetic if somebody wanted to argue that arrow functions should 
> treat 'arguments' similar to this and super and not local rebind its 
> meaning.
>
> However, I would also anticipate some implementor push back on that as 
> I suspect that implementations aren't current set up to uplevel access 
> 'arguments'
>

No one proposed this and the consensus was implicitly against it in 
wanting strict mode opt-in to compose with arrows as with function 
expressions. Let's not complicate arrows any more than necessary 
(lexical |this|).

/be


More information about the es-discuss mailing list