3 ms·
While I am not a fan of recursion, the call stack that enables it sounds infinitely better than statically allocating space for parameters and return values. Be
by II2II 3y ago
While I am not a fan of recursion, the call stack that enables it sounds infinitely better than statically allocating space for parameters and return values. Besides, it makes some algorithms clearer. That is certainly useful in learning environments, including early academic research.
- Joel_Mckay 3y agoDepends on the CPU, in some architectures the stack pointers had low finite capacity before overflowing.