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

That explicit tail recursion syntax is pretty gross. Is there a precedent in any other language?


Rust has plans for a `become` operator for tail call optimization.


Clojure's recur is kinda-close, I guess?


It is, but Clojure uses it, because it cannot really do Tail Call Optimization due to constraints on the JVM. Therefore "recur" is required to keep the Stack from overflowing.




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

Search: