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

I believe it was due to limitations of the JVM at the time.

Edit: https://www.windley.com/archives/2008/11/tail_optimized_mutu...



I prefer Scala’s solution, where tail calls look like normal calls, and a @tailrec annotation can assert they really are optimized out (or break the build).


Seems like they compiler could generate the trampoline itself and just ignore any recur that occurs.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: