3 ms·
Perhaps with a syntax for tail calls, you could do it not at the end of a function.
by ape4 4y ago
Perhaps with a syntax for tail calls, you could do it not at the end of a function.
- richdougherty 4y agoIt 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.
- ape4 4y agoI was suggesting something like bash `exec`