Software bugs aren't inevitable

Ron Adam rrr at ronadam.com
Fri Sep 16 12:16:01 EDT 2005


Terry Reedy wrote:

> You cannot tell whether a function object will act
> recursive or not just by looking at its code body.  Trivial examples:

I was thinking last night that maybe it would be useful to be able to 
define a function explicitly as a recursive object where it's frame is 
reused on successive calls, but then I realized that it's nearly 
identical to a loop in that context, so why not just write it as a loop 
to start with.

Cheers,
Ron



More information about the Python-list mailing list