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

No recursion kinda makes sense, because you really don't want to have an accidental stack overflow while the airplane is off the ground...

Interestingly, one of the goals of the Zig language (marketed as a replacement for C, currently in development), is to eliminate stack overflow while keeping recursion (by enabling the user to allocate stack frames in the heap).

https://github.com/ziglang/zig/issues/1639




Wouldn't that eventually just lead to an OOM? Most of the time the recursion I write is either well-formed and lives nicely in the stack or poorly-formed and would consume all the memory in the universe if given the opportunity.




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

Search: