DEV Community

Discussion on: What's The Deal With Recursive Programming?

Collapse
 
courier10pt profile image
Bob van Hoove

That's a nice example :) If may add two pieces of advice:

  • Make a habit of starting with your 'stop' condition - just like in the example
  • In some languages / environments it's best avoided, depending on how a stack overflow is handled
Collapse
 
bengreenberg profile image
Ben Greenberg

Thanks Bob! I appreciate the advice.