Re: break, continue, goto
Re: break, continue, goto
- Subject: Re: break, continue, goto
- From: Stephan Lichtenauer <email@hidden>
- Date: Mon, 4 Aug 2003 12:04:34 +0200
David,
I think (and that is of course just my personal opinion, although I
think it is not too unusual...) you never need a goto. If you need one,
you are doing something wrong and you should rethink and reorder your
code into an appropriate loop. Some languages even do not offer a goto
and they nevertheless work well.
A different matter is break and continue, you definitely need them in a
switch and I think there are a lot of algorithms where at least a break
also makes sense when programming a loop.
Just my 2c
Stephan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.