3 ms·
I believe it was due to limitations of the JVM at the time. Edit: https://www.windley.com/archives/2008/11/tail_optimized_mutual_recursion_in_clojure.shtml htt
by kgwxd 5y ago
I believe it was due to limitations of the JVM at the time.
Edit: https://www.windley.com/archives/2008/11/tail_optimized_mutual_recursion_in_clojure.shtml https://www.windley.com/archives/2008/11/tail_optimized_mutu...
- erik_seaberg 5y agoI 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).
- gumby 5y agoSeems like they compiler could generate the trampoline itself and just ignore any recur that occurs.