3 ms·
> But alas, we don’t have tail call recursion in V8 or SpiderMonkey yet. (At least, not at the time of writing). That really is disappointing. BTW, a Javascrip
by ballenf 6y ago
> But alas, we don’t have tail call recursion in V8 or SpiderMonkey yet. (At least, not at the time of writing).
That really is disappointing. BTW, a Javascript interpreter with proper tail calls is built in to every Mac, but it's not in the path by default: https://stackoverflow.com/a/61740889/5641202 https://stackoverflow.com/a/61740889/5641202
Just FYI if you want to run recursive Javascript from the command line in MacOS.