On Jun 9, 12:16 pm, James Stroud <[EMAIL PROTECTED]> wrote:
> Terry Reedy wrote:
> > In Python, you have a choice of recursion (normal or tail)
>
> Please explain this. I remember reading on this newsgroup that an
> advantage of ruby (wrt python) is that ruby has tail recursion, implying
> that python does not.

Proof by rumour? You can use first class continuations in Ruby to
eliminate tail calls in and define higher order function wrappers
( like Python decorators ). But I wouldn't call this "fully
optimized".

> Does python have fully optimized tail recursion as
> described in the tail recursion Wikipedia entry?

No.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to