Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

https://github.com/hylang/hy/blob/master/docs/contrib/loop.r...

I thought this is not possible in python. Can someone explain ? Python doesn't have tail call optimization and hy produces python AST. Am I missing something ?

I tried reading through the source, but I am still a lisp noob. https://github.com/hylang/hy/blob/master/hy/contrib/loop.hy



The entry is misleading. We don't really do TCO. It's just a trampoline calling the loop/recur form until there is nothing left to produce.

Same solution clojure has, as the JVM dosn't allow for TCO.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: