Python's "only one way to do it" philosophy isn't good?
kay.schluehr at gmx.net
Sat Jun 9 13:28:10 CEST 2007
On Jun 9, 12:16 pm, James Stroud <jstr... at mbi.ucla.edu> 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
> Does python have fully optimized tail recursion as
> described in the tail recursion Wikipedia entry?
More information about the Python-list