Python is not bad ;-)

Cecil Westerhof Cecil at decebal.nl
Sat May 2 06:29:22 EDT 2015


Op Saturday 2 May 2015 11:10 CEST schreef Marko Rauhamaa:

> Cecil Westerhof <Cecil at decebal.nl>:
>> I find factorial a lot cleaner code as factorial_iterative, so here
>> tail recursion would be beneficial.
>
> I would just call math.factorial() and be done with it.

You missed the point. I did not need a factorial function, I wanted to
show that tail optimisation could be beneficial.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof



More information about the Python-list mailing list