Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can turn it into a loop with a case statement inside if you collect the connected component of tail called functions and make those the cases. But it’s gonna be a big function.

You can split it up a bit if you use a trampoline, but then you lose some efficiency.



Though at that point you're basically just one step removed from making your own stack frame.

Which would definitely work, no doubts about that, but it might be nicer to just get it handled at a more fundamental level.




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

Search: