3 ms·
On the other hand, for a linked list, recursion follows immediately from the definition of the list, while iteration does not. I would rather have my debugger
by betterunix 14y ago
On the other hand, for a linked list, recursion follows immediately from the definition of the list, while iteration does not. I would rather have my debugger allocate a large stack or compile the code so that TCO was enabled even when I was debugging than have to deal with implementations that do not clearly follow from a high-level design.