|
|
Recursion |
|
A function can call itself. This is prohibited in some languages (Fortran)
Some very elegant solutions to common problems can be expressed using recursion.
Care must be taken to avoid infinite recursion
Most control flow can be recast in recursion though it can be very inefficient.