3 ms·
Js really should have it. I think the shift in style from functional and manual prototype chains to Java classes is quite disappointing.
by groundzeros2015 2mo ago
Js really should have it. I think the shift in style from functional and manual prototype chains to Java classes is quite disappointing.
- chuckadams 2mo agoTechnically TCO is still in the spec, TC39 deadlocked over modifying it. TC39 really does not fill me with confidence in general.
- webstrand 2mo agoES6 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.