[Python-ideas] Tail recursion elimination

Joao S. O. Bueno jsbueno at python.org.br
Sat Jan 18 18:12:29 CET 2014


This one is. What are you taliking about?

On 18 January 2014 13:58,  <musicdenotation at gmail.com> wrote:
> On Jan 18, 2014, at 22:08, "Joao S. O. Bueno" <jsbueno at python.org.br> wrote:
>
>
> You can use tail recursion elimination in Python as it is today.
>
> I have seen many "implementations" of tail-call optimization, and their
> common problem is that they all require special syntax to work. I need a
> solution that is directly usable with Python's orrdinary return statement.

What are you talking about? This one is usable with ordinary returns.
It just requires a decorator.


More information about the Python-ideas mailing list