3 ms·
I think that => is going to be used far more than you think. The original scoping rules for javascript have caused all sorts of confusion. The important piece i
by ebiester 13y ago
I think that => is going to be used far more than you think. The original scoping rules for javascript have caused all sorts of confusion. The important piece isn't removing function, it's removing .bind(this).
The changes in ES6 go a long way in making modern javascript more intuitive to write.
- hyperpape 13y agoI agree that the way scope works in fat arrow functions is better, and I'm honestly excited about most of ES6 (proper maps and sets alone are worth it to me). What does make me sad is that the old shit isn't going away. And not that it's not going away soon, but that, as far as we can tell, we're going to be teaching people about "this" for the rest of eternity. I get why Brendan Eich and others are scared of versioning javascript, but I don't think it's tenable to have to keep so many semantically dischordant features of the language around for decades.