Re:Ask HN: Programs that saved you 100 hours?
by pasabagi on Wednesday April 15, 2020 @02:37AM
(#22875187)
Honest question: when are loops not replacement for recursion?
My (admittedly naive) mental model of recursion is basically a loop where you bring your entire stack frame with you (or less, in the case of tail recursion).
My (admittedly naive) mental model of recursion is basically a loop where you bring your entire stack frame with you (or less, in the case of tail recursion).