[Python-Dev] Proper tail recursion

Guido van Rossum guido at python.org
Thu Jul 15 16:34:46 CEST 2004


> > Guido continues:
> > > Another reason is that I don't think it's a good idea to try to
> > > encourage a Scheme-ish "solve everything with recursion" programming
> > > style in Python.
> > 
> > I wouldn't say that tail recursion *encouraged* a functional style,
> > rather I would say that refusing to accept a working version of
> > tail recursion actively *discourages* the use of that style.

> How about: Tail recursion "enables" recursion-oriented (functional)
> style? :)

Still -1.  I was understating my case: I find the "recursion is the
basis of everything" attitude harmful.

--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list