TCO's Uneven Adoption: Languages That Guarantee vs. Ignore

While Scheme, Racket, Erlang, Elixir, and Lua guarantee TCO by language design, C/C++/Rust compilers may apply it opportunistically at higher optimization levels. Java, Python, and often JavaScript (except Safari) notably lack or have removed general TCO support due to concerns like debugging and stack trace integrity.

Sources

Open the full topic