Python is not bad ;-)

Gregory Ewing greg.ewing at canterbury.ac.nz
Sat May 2 03:44:29 EDT 2015


Steven D'Aprano wrote:

> People coming from functional languages like Lisp and Haskell often say
> that, but how many recursive algorithms naturally take a tail-call form?
> Not that many.

And the ones that do tend to be the ones that are
better expressed iteratively in Python. So Python
doesn't really need tail call optimisation.

Also, Guido has said that he doesn't like it,
because of the detrimental effect it has on stack
tracebacks.

-- 
Greg



More information about the Python-list mailing list