KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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.
Tags (comma-separated)
Save Edits
Cancel