Thread: Break statement
View Single Post
Old May 21st, 2006, 11:32 PM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I would go either way. When it comes to goto, as in C, you can put the goto label in strange, non-related out-of-the-way places and really do some spaghetti code screwups. In the situation you're looking at, the break terminates the labeled construct, rather than branching TO the label. I see nothing wrong with it. Of course, I'm not a high-priest looking for acolytes to kiss my ring. I'm an acolyte looking for a high-priest to kiss my butt.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote