IMHO this is exactly how we end up complicating things even more in JS. And then we blame JS for becoming so complicated with all those frameworks. This is how the language works and there are solutions to these "problems".
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
There is a tradeoff. pros and cons that have to be weighted. For me, the cons of this in addition to the pros of nothis (arrow functions, destructuring, bound contexts) outweigh the cons of an additional library.
IMHO this is exactly how we end up complicating things even more in JS. And then we blame JS for becoming so complicated with all those frameworks. This is how the language works and there are solutions to these "problems".
There is a tradeoff. pros and cons that have to be weighted. For me, the cons of
this
in addition to the pros ofnothis
(arrow functions, destructuring, bound contexts) outweigh the cons of an additional library.Fair enough!