3 ms·
Yes, but only in the cases where the tail recursion optimisation is applicable. Recursive constructs are can be not tail recursive (and usually are with new st
by dspillett 12y ago
Yes, but only in the cases where the tail recursion optimisation is applicable.
Recursive constructs are can be not tail recursive (and usually are with new starter developers) and many languages ignore it anyway (meaning even code that can be unpacked from function calls into a loop are not so the stack is still used).