in reply to "return" to break out of a loop
Back in the dark ages, when I was was at uni, I was taught that every programming construct should have exactly one entry and exactly one exit point1
It sucked then, and it still sucks now. return inside a loop is perfectly acceptable.
--
1Anyone else remember Jackson Structured Programming?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "return" to break out of a loop
by ack (Deacon) on May 14, 2008 at 03:58 UTC |