4 ms·
Why not just Clojure? Does it have a tail-call->loop strategy? cpython, like JVM, doesn't have TCO. http://stackoverflow.com/questions/13591970/does-python-op
by jongraehl 13y ago
Why not just Clojure?
Does it have a tail-call->loop strategy? cpython, like JVM, doesn't have TCO.
http://stackoverflow.com/questions/13591970/does-python-optimize-tail-recursion http://stackoverflow.com/questions/13591970/does-python-opti...
- paultag 13y agoHey there, hy author here - the issue is TCO requires (basically) a GOTO like command, the Python AST doesn't have this -- which is depressing, yes. I'd love ideas on doing TCO, but I don't think it's easily doable with a traditional method of implementing TCO
- apgwoz 13y agoI wrote something similar to hy once before but never finished--was called ruse. I solved the TCO problem with trampolines.