3 ms·
fwiw, scala has some limited TCO, and it also runs on the JVM
by thayne 5y ago
fwiw, scala has some limited TCO, and it also runs on the JVM
- e12e 5y agoKotlin has explicit tail-calls via tailrec: https://kotlinlang.org/docs/functions.html#tail-recursive-functions https://kotlinlang.org/docs/functions.html#tail-recursive-fu...
- tines 5y agoLooks like the equivalent of Clojure's `recur`. Unfortunately doesn't work for mutually recursive routines.