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?
In reply to Re: "return" to break out of a loop
by FunkyMonk
in thread "return" to break out of a loop
by weedom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |