Hacker News new | past | comments | ask | show | jobs | submit login

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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: