3 ms·
because the whole 3 of us that compile lisp type languages into php need it for TCO.
by shaunxcode 17y ago
because the whole 3 of us that compile lisp type languages into php need it for TCO.
- Scriptor 17y agoIt's not strictly necessary, tail recursion is enabled in Pharen (http://github.com/scriptor/pharen http://github.com/scriptor/pharen) by compiling it into a while loop. By the way, the docs on that page are way out of date so if anyone is interested feel free to contact me. EDIT: I'm an idiot, for tail calls of course it's a bit more complicated than just using a loop.