News for hackers. Stuff that matters.
Re:It Can Happen to You by arcturus17 on Thursday March 04, 2021 @01:55PM (#26346544)
There's no denying that from that definition they are the same. It's just after you've debugged enough loops and recursions you can't help but think they are quite different!
Re:It Can Happen to You by didibus on Friday March 05, 2021 @01:49AM (#26353646)
Well, I don't mean they are the same, they're just different kinds of looping constructs.

Like what you call a loop isn't a loop, its actually a for-loop, or its a while-loop, or a for-each loop, or its an iterator loop, and similarly recursion is just a recursive loop.

At least that's the common taxonomy I know off. So all these are loops, and the ones that involve mutation for the condition to kick in are further grouped as imperative loops.