Self-recursion and arrow functions

Axel Rauschmayer axel at rauschma.de
Sat Mar 16 14:29:55 PDT 2013


Quoting Brendan Eich in [1]:

> arrows can't have intrinsic names (contrast with NFEs) so arguments.callee may be wanted, so arrows should not be strict-only.

Is this really an option? Sounds messy. Like a carrot to go back to non-strict. I’d either allow arguments.callee in both modes. Or introduce a new mechanism for a function to refer to itself. I thought that `arguments` would disappear from JavaScript code over time so the latter alternative seems better.

Axel

[1] https://github.com/rwldrn/tc39-notes/blob/master/es6/2013-01/jan-30.md

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130316/1d3d8706/attachment-0001.html>


More information about the es-discuss mailing list