Re:What can be learned from studying long gone development p...
by int_19h on Monday August 16, 2021 @01:45PM
(#28200781)
But why would you do that, if it's simple and elegant? Really the only answer is that it has potentially unbounded stack consumption - but tail recursion solves exactly that problem.
I find recursion to be very simple and elegant for prototyping algos, but I would instinctively rewrite it with an iterative/queue form as soon as the "toy" stage is over.