News for hackers. Stuff that matters.
Re:How recursion got into Algol 60: a comedy of errors by Swizec on Thursday August 27, 2015 @07:21PM (#10132764)
> I wouldn't be surprised if making someone spend a decade writing mostly imperative code causes them to become more comfortable with iteration, and making someone spend a decade writing mostly declarative code causes them to become more comfortable with recursion.

I have spent a decade doing a mix of both. It really really really depends on the problem at hand what's easier to understand

Have to traverse a tree? Recursion.

Have to make a big thing out of small things? Recursion.

Have to add +1 to a bunch of numbers? Loop.

There are no comments on this comment yet.