3 ms·
Not one browser implements TCO, and Babel only implements direct recursion, not mutual recursion. Sigh. Trampolines are your only option aside from Babel. I've
by taylodl 11y ago
Not one browser implements TCO, and Babel only implements direct recursion, not mutual recursion. Sigh. Trampolines are your only option aside from Babel. I've written about trampolines here: https://taylodl.wordpress.com/2013/06/07/functional-javascript-tail-call-optimization-and-trampolines/ https://taylodl.wordpress.com/2013/06/07/functional-javascri...
- strmpnk 11y agoThis. It's sad to have this in the standard but with no vendors communicating their intention to implement it and no way to polyfill that doesn't involve significant overhead. So close yet so far. This is JavaScript's curse.