Comment

Comment by ihoz

Recursion is nothing more than implicitly using a stack (via the call stack) or explicitly with a loop.

You just won't get a stack overflow exception with the loop -- you'll run out of heap instead. It's still the stack filling up.

parent ihoz 9 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton