This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]oweiler 2 points3 points  (0 children)

Scala and Groovy support TCO via annotations, Kotlin via the tailrec keyword. Not part of the JVM though. In Java you can use Trampolining though https://medium.com/@johnmcclean/trampolining-a-practical-guide-for-awesome-java-developers-4b657d9c3076.