Self-recursion and arrow functions
brendan at mozilla.com
Sat Mar 16 15:12:41 PDT 2013
I wouldn't overreact. My note was simply that we should not make arrows
strict by definition, and TC39 agreed. Among the "folk wisdom" reasons
for avoiding strict is to have arguments.callee, but of course NFEs
should be preferred in modern engines. But there's no arrow NFE form.
Brandon Benvie wrote:
> I think this is a better argument for introducing a new primitive for
> referencing the current function than for resurrecting arguments.
> On Mar 16, 2013, at 2:29 PM, Axel Rauschmayer <axel at rauschma.de
> <mailto:axel at rauschma.de>> wrote:
>> Quoting Brendan Eich in :
>>> 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
>> time so the latter alternative seems better.
>> Dr. Axel Rauschmayer
>> axel at rauschma.de <mailto:axel at rauschma.de>
>> home: rauschma.de <http://rauschma.de>
>> twitter: twitter.com/rauschma <http://twitter.com/rauschma>
>> blog: 2ality.com <http://2ality.com>
>> es-discuss mailing list
>> es-discuss at mozilla.org <mailto:es-discuss at mozilla.org>
> es-discuss mailing list
> es-discuss at mozilla.org
More information about the es-discuss