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

You might be interested in ES6’s arrow functions, which change the behaviour of this to something you might approve of (you didn’t specify how you thought it was broken):

http://tc39wiki.calculist.org/es6/arrow-functions/




yea there are many different tactics to tackle this issue - still default behaviour is confusing at best - bad design at worst.




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

Search: