Y
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
richdougherty
1457 days ago
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.
link
ape4
1457 days ago
I was suggesting something like bash `exec`
link