Menu
  • HOME
  • TAGS

Tail recursion optimization and recursion in Java

java,recursion,tail-call-optimization,tail-call

Java 8 has no Tail Call Optimization whatsoever. No calls will be optimized (turned into iteration/goto statements). The discussion over TCO for Java has a long history, though, with Guy Steele being one of its best-known proponents. I recommend reading this post from the mlvm-dev mailing list for a recent...