3 ms·
> while tail calls are now fully optimized and/or the default stack limit has grown considerably That is great to hear. Now we can finally start really doing
by jnbiche 10y ago
> while tail calls are now fully optimized and/or the default stack limit has grown considerably
That is great to hear. Now we can finally start really doing functional programming in JS. Too bad about the generators, though.
- michaelsbradley 10y agoWell, I'm not sure which one is the case, sorry to say (TCO or bigger stack limits, or both). I was only taking a guess as to why the mutual recursion example works for very large values in node v6.x but not in v5.x. But yes, if tail call optimization is guaranteed, then functional programming patterns can certainly shine the brighter for it.