which is better anons
>>62400274
is this comp-sci 101?
when is recursion ever good?
>>62400308
Quickly programming something.
>>62400308
When you don't have a mapping of what you need to display.
A good example is drop down navigation on a website. Especially when you have more than two levels.
>>62400308
When dealing with recursive data structures like trees
>>62400329
faggots and haskellors(faggots) use recursion
>>62400367
you're a fucking idiot
>>62400420
you're a fucking retard
make a traversing loop instead
>>62401636
Why make it more difficult to understand with a loop? Recursion with memoization is clean, fast, and simple.
>>62401636
>hurr durr just use a traversing loop
And waste 25 lines doing what could be done in 3? If you use a language that uses tail call optimization then it literally doesn't matter. You're such a brainlet
>>62400308
is this comp-sci 101?
when is recursion ever good?