<html><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"></head><body><div><div style="font-family:Calibri,sans-serif;font-size:11pt">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.<br>
</div></div><hr><span style="font-family:Tahoma,sans-serif;font-size:10pt;font-weight:bold">From: </span><span style="font-family:Tahoma,sans-serif;font-size:10pt">Ryan</span><br><span style="font-family:Tahoma,sans-serif;font-size:10pt;font-weight:bold">Sent: </span><span style="font-family:Tahoma,sans-serif;font-size:10pt">1/18/2014 4:57 PM</span><br>
<span style="font-family:Tahoma,sans-serif;font-size:10pt;font-weight:bold">To: </span><span style="font-family:Tahoma,sans-serif;font-size:10pt"><a href="mailto:musicdenotation@gmail.com">musicdenotation@gmail.com</a>; Joao S. O. Bueno; <a href="mailto:python-ideas@python.org">python-ideas@python.org</a></span><br>
<span style="font-family:Tahoma,sans-serif;font-size:10pt;font-weight:bold">Subject: </span><span style="font-family:Tahoma,sans-serif;font-size:10pt">Re: [Python-ideas] Tail recursion elimination</span><br><br></body></html>
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">I wrote one that uses decorators. How is that special syntax?<br><br><div class="gmail_quote"><a href="mailto:musicdenotation@gmail.com">musicdenotation@gmail.com</a> wrote:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div><blockquote type="cite">On Jan 18, 2014, at 22:08, "Joao S. O. Bueno" <<a href="mailto:jsbueno@python.org.br">jsbueno@python.org.br</a>> wrote:</blockquote></div><div><br></div><blockquote type="cite">
<span>You can use tail recursion elimination in Python as it is today.</span><br><blockquote type="cite"><span></span></blockquote><blockquote type="cite"><span></span></blockquote><blockquote type="cite"><span></span></blockquote>
<blockquote type="cite"><span></span></blockquote><blockquote type="cite"><span></span></blockquote><blockquote type="cite"><span></span></blockquote><blockquote type="cite"><span></span></blockquote><blockquote type="cite">
<span></span></blockquote><blockquote type="cite"><span></span></blockquote><blockquote type="cite"><span></span></blockquote><blockquote type="cite"><span></span></blockquote></blockquote>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 <i>return</i> statement.<p style="margin-top:2.5em;margin-bottom:1em;border-bottom:1px solid #000"></p><pre class="k9mail"><hr><br>Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br><a href="https://mail.python.org/mailman/listinfo/python-ideas">https://mail.python.org/mailman/listinfo/python-ideas</a><br>Code of Conduct: <a href="http://python.org/psf/codeofconduct/">http://python.org/psf/codeofconduct/</a></pre>
</blockquote></div><br>
-- <br>
Sent from my Android phone with K-9 Mail. Please excuse my brevity.</body></html>