4 ms·
I think we'll start seeing a lot of ES6 to ES5 compilers. Then it's going to be a question of how to load the appropriate logic into the web page based on what
by hdragomir 14y ago
I think we'll start seeing a lot of ES6 to ES5 compilers.
Then it's going to be a question of how to load the appropriate logic into the web page based on what it can do.
I have mixed feelings about this one, but I'm definitely looking forward to the new features.
- gsnedders 14y agoYou can't compile everything down: most notably, you cannot implement WeakMap without altering the GC.
- wycats 14y agoIt's not even clear how to fully implement things like class-side inheritance in a transpiler. The CoffeeScript implementation uses a definition-time copy of properties, which is probably good enough for many cases, but not all. That said, many of the features are sugar around existing patterns, like rest and default parameters to functions or arrow functions, so I expect that even an incomplete transpiler would be broadly useful as the specification solidifies.