3 ms·
Tail recursion isn't a computationally/memory intensive optimization to make, so it's been in since the beginning. It doesn't guarantee that it will make that
by monocasa 6y ago
Tail recursion isn't a computationally/memory intensive optimization to make, so it's been in since the beginning.
It doesn't guarantee that it will make that optimization though, unlike some more functional languages that rely on that to generate the same stack consumption as a for loop would.