Possible Duplicate:
Recursion or Iteration?
To iterate is human, to recurse divine. - L. Peter Deutsch
Why do people favor recursion over iteration, and even go so far as to call it divine, as shown in the quote? It seems to be over-hyped. As far as I can tell, recursive code is more difficult to grasp, and therefore maintain. Additionally, you run the risk of stack overflows if the compiler doesn't optimize.