2 ms·
Based on a recent talk I attended, I believe that Guido admits that it's purely a matter of opinion, but he always has to "unroll" the recursive in his head to
by baddox 15y ago
Based on a recent talk I attended, I believe that Guido admits that it's purely a matter of opinion, but he always has to "unroll" the recursive in his head to be able to figure out what recursive code does, so he concludes that it might as well be written the way that he thinks.
I agree with that last part, but I can't imagine thinking of every algorithm iteratively. Binary search, merge sort, and pretty much any tree algorithm are examples of algorithms that (to me) are much less natural to thing of iteratively.