3 ms·
Tail recursion sometimes comes up naturally. It's essentially a goto with parameters. Thus it comes up where goto is also (at least borderline) useful, eg imp
by eru 9y ago
Tail recursion sometimes comes up naturally. It's essentially a goto with parameters. Thus it comes up where goto is also (at least borderline) useful, eg implementing state machines.
- aidenn0 9y agoI almost added a parenthetical after "rarely" to the effect that state-machines are the one exception I've encountered.