goto

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Wed Jul 20 03:30:36 EDT 2005


Mike Meyer enlightened us with:
>> I dislike gotos because it is too easy to inadvertently create
>> infinite loops. <10 WINK; 20 GOTO 10>
>
> And it's impossible without them? <while True: pass>

I thought the same thing, but then I read it again and thought about
the "inadvertently". As soon as you see a "while True", you _know_
it's going to loop forever. As soon as you see a "goto 10", you don't.

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list