Hacker News new | ask | show | jobs
by pasabagi 2256 days ago
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).