3 ms·
Still, even when tail recursive it is useful when it ends up with clean code. But then if you want to read it you still have to understand what it is tail recur
by lmilcin 6y ago
Still, even when tail recursive it is useful when it ends up with clean code. But then if you want to read it you still have to understand what it is tail recursion and whether it applies in particular case.
- 8note 6y agoA nice thing about tail recursion is having a in interface for what the loop requires at the start. Putting a function call in a loop maybe does that more clearly though