Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you want to see a language which is stylistically very similar to Python* , but has TCO, check out Lua.

In practice: you can easily add pre-tail-call tracing, you have the option of starting a debugging REPL on error, using iterators is very idiomatic, it makes implementing coroutines and fully-functional closures easier, etc.

I happen to think the most significant benefit of TCO is being able to set up "looping" tail calls between multiple functions, but that's just me.

* Somewhere between Python and Javascript, specifically.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: