3 ms·
ES6 is a mixed bag for me. I'm against block scope in a way. It's semi-useful, but it's just sugar. So many features of ES6 seem to be designed for people who
by chjj 11y ago
ES6 is a mixed bag for me.
I'm against block scope in a way. It's semi-useful, but it's just sugar. So many features of ES6 seem to be designed for people who don't want to bother learning javascript: classes, block scope, arrow syntax, etc. It's just trying to shoehorn javascript into the template every other language follows when javascript is not every other language.
That being said, I like iterators, weak maps, typed arrays, TCO, and so on.
- Kudos 11y agoFat arrows are increasingly becoming one of my favourite additions. No more `function() {}.bind(this);` since `() => {};` is equivalent. It makes it clearer for the reader that the code block inherits scope.