Hm. Any reference to arguments, super, or this in an arrow function (=>) in ES6 resolves to the *enclosing* scope. That is not intuitive.
-
-
@wycats@brianleroux I would assume an arrow function would keep its parents scope, am I wrong? -
@matbeeDOTcom@brianleroux You are right, and it applies to the keywords `super`, `arguments`, and `this`. Makes custom `.map` etc. awesome
End of conversation
New conversation -
-
-
@wycats@brianleroux maybe because I've understood => from the as a new type of function, not just shorthand, I also find them intuitive -
@wycats@brianleroux not only intuitive, but deeply desired in 95% of my use cases. -
@wycats@brianleroux ugh I can't type, "from the *beginning*"
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.