Hacker News new | ask | show | jobs
by stev-0 1187 days ago
I don’t think recursion is that hard to reason about. You need an understanding of how to work with it. This requires practice in the same way dealing with trigonometry required that.

If you are a programmer and feel that dealing with recursion is hard I think you’ve got an opportunity for growth there.

It’s true that recursion is harder to deal with than loops. I generally use loops and recursion for a different class of problems.

Working with trees of arbitrary depth is much easier when using recursion.