Hacker News new | ask | show | jobs
by ape4 1458 days ago
Perhaps with a syntax for tail calls, you could do it not at the end of a function.
1 comments

It needs to be at the end of the calling function so you can throw the calling function's stack frame away, since it's still in use. Getting rid of the calling stack frame is what proper tail calls is about.
I was suggesting something like bash `exec`