A few arrow function specification issues

Axel Rauschmayer axel at rauschma.de
Sat Apr 21 19:36:31 PDT 2012


> Using `=>` but being forced to using `function` anytime I want dynamic this just doesn't work.

That may be the crux of the matter. I’d say: In new code, use a method definition any time you want dynamic `this`. In old code, use a function expression.

-- 
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/20120422/635f30c6/attachment.html>


More information about the es-discuss mailing list