4 ms·
ES6 class syntax is still mostly just syntax sugar overtop prototypical inheritance. JS _does_ still have TCO (called Proper Tail Calls), Safari's JavaScriptCo
by webstrand 2mo ago
ES6 class syntax is still mostly just syntax sugar overtop prototypical inheritance.
JS _does_ still have TCO (called Proper Tail Calls), Safari's JavaScriptCore implements it, and is technically the only conforming interpreter.
- groundzeros2015 2mo agoYes but the syntax encourages patterns which would be uncommon in pre-ES6 JS. I can’t rely on TCO if chromium doesn’t have it.