Promoting Python

Marko Rauhamaa marko at pacujo.net
Wed Apr 6 15:30:45 EDT 2016


Chris Angelico <rosuav at gmail.com>:

> This is the exact sort of shenanigans that it takes to convert
> recursion into tail recursion - and in MOST cases, it's very little
> effort to go from there to explicit while loops. That's why TCE is so
> infrequently important that it's just not worth the cost - which in
> this case is damage to tracebacks.

In Python, that is.

In Scheme, you write loops with tail recursion.

While you *could* use the (while code body ...) form in Scheme, that
would be falling out of religion.


Marko



More information about the Python-list mailing list