3 ms·
I had a similar experience with tail recursion that I only fully grokked much later when I had to implement some stack-trickery in C for a computer game. I real
by sokoloff 4y ago
I had a similar experience with tail recursion that I only fully grokked much later when I had to implement some stack-trickery in C for a computer game. I realized then that tail recursion was typically optimized as a jump to code within the same stack frame rather than creating a new stack frame.