|
|
|
|
|
by erikpukinskis
3244 days ago
|
|
What do you like about ES6? It just looks like syntactic sugar to me, but I'm always interested in re-evaluating. Writing [1,2,3].map(function(x) { return x+10 }) really doesn't bother me. I don't see what the benefit is of an arrow function. Are there other things that you like? As the OP mentions, the inheritance stuff is just likely to cause architecture headaches. I like JavaScript's concurrency model (single threaded with callbacks) so I don't see any benefit to the async stuff. It just seems like people added a ton of complexity to give up a few keystrokes. Transpiling and shimming and adding more control structures make your application more complicated, so there is a real cost. And keystrokes are not generally a big problem when I'm programming. I'm not in a race. |
|
Same goes for 'arguments', though that comes up less. Basically, they're much more representative of a simple lambda than a classical function.