MacroPy also has an implementation of TCO implemented using trampolining. It trades stack introspection for load-time-analysis, which could be a win or a loss depending on how you view things.
Sent: 1/18/2014 4:57 PM
To: firstname.lastname@example.org; Joao S. O. Bueno; email@example.com
Subject: Re: [Python-ideas] Tail recursion elimination
I wrote one that uses decorators. How is that special firstname.lastname@example.org wrote:On Jan 18, 2014, at 22:08, "Joao S. O. Bueno" <email@example.com> 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.
Python-ideas mailing list
Code of Conduct: http://python.org/psf/codeofconduct/