You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Odd issue with arrow functions and this scope #733
@eventualbuddha Not sure if there's anything else that can be done since in all the examples where arrow functions are shown they're always presented with an automatic lexical scope binding.
Activity
developit commentedon Feb 9, 2015
thisis lexically scoped in arrow functions. See #730.stefanbruvik commentedon Feb 9, 2015
https://github.com/nzakas/understandinges6/blob/master/manuscript/02-Functions.md#arrow-functions
chrisabrams commentedon Feb 9, 2015
Ah ok...learned something new today :) Thanks @developit and @stebru
eventualbuddha commentedon Feb 9, 2015
@sebmck, this is the third or fourth example of this sort of question being raised. Do you think we should put it on the website or docs somewhere?
dashed commentedon Feb 9, 2015
Yes please.
https://6to5.org/docs/learn-es6/#arrows
First sentence is already misleading:
chrisabrams commentedon Feb 9, 2015
That is exactly how I was mislead. I did not realize that the
=>behaves similarly to the=>in CoffeeScript.jamiebuilds commentedon Feb 9, 2015
Open an issue in https://github.com/6to5/6to5.github.io please
sebmck commentedon Feb 9, 2015
@eventualbuddha Not sure if there's anything else that can be done since in all the examples where arrow functions are shown they're always presented with an automatic lexical scope binding.