return in loop for ?

bonono at gmail.com bonono at gmail.com
Thu Nov 24 09:30:01 CET 2005


Steve Holden wrote:
> Well, I'm happy in this instance that practicality beats purity, since
> the above is not only ugly in the extreme it's also far harder to read.
>
> What are the claimed advantages for a single exit point? I'd have
> thought it was pretty obvious the eight-line version you gave is far
> more likely to contain errors than Mike's three-line version, wouldn't
> you agree?
>
I thought it is about easier to spot error(that the return value is
done in single place) but didn't give too much attention as I don't buy
it. I call them "gotophobia"




More information about the Python-list mailing list