3 ms·
The latest spec still talks about tail call optimization. The big objection was to replace implicit tail calls with a syntax to specify functions that might tai
by hajile 8y ago
The latest spec still talks about tail call optimization. The big objection was to replace implicit tail calls with a syntax to specify functions that might tail call.
With TCO being part of the spec and the potential replacement spec killed off, browsers really need to start getting with the program.
JavascriptCore (safari), Node v6, duktape, jerryscript, XS6, etc all have proper tail calls. It breaks the community to not implement them. It's not a standard if its not standard.
- soegaard 8y agoExplicit or implicit doesn't matter for compiling to JavaScript. Explicit tail calls are much better that no tail call support at all.
- hajile 8y agoI agree, but the companies behind explicit calls dropped it, but are refusing to implement the current spec too. Their stupid politics endanger the js ecosystem.