3 ms·
The real problem, of course, is that in the cases where compiler-based TCO is possible, the user can trivially refactor the function to use a loop.
by o11c 3y ago
The real problem, of course, is that in the cases where compiler-based TCO is possible, the user can trivially refactor the function to use a loop.
- tonyg 3y agoThis is not true. The compiler can trivially turn this into a jump, but the developer doesn't have enough context to construct any kind of loop: function ap(f, v) { return f(v); }