Hacker News new | past | comments | ask | show | jobs | submit login

The arrow function doesn't solve it in cases where you define generator functions. You cannot use the arrow operator for those causing syntax errors and you still have to keep binding "this" or define "self" like in the article.

This is one area where typescript (or es7) does it better with async functions where arrow operators are permitted.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: