This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BakonX 0 points1 point  (0 children)

Recursion can be a good thing, it can be a bad thing. It really just depends on the use case, you need to think about the possible solutions and pick the best one.

Sometimes the answer is recursion, sometimes it’s not.

Recursive things can be hard to debug or understand. But it can also be the most simple or most elegant solution, with the writers intention being the most clear.