Quote:
Originally Posted by SnoW
You shouldn't use jumps( breaks, continues and returns ) as they just make the code harder to perceive and mess it up. You want to keep things simple and it's much easier to think that you eat if you'r hungry instead of if you'r not hungry you skip eating.
|
I know this discussion is already far away from this quote, but I have to say, what you're saying pushes coders to do workarounds instead of proper logic. Jumps are made to be used, they're part of the logic and if you can code you should understand them. I agree with not using gotos, but breaks and continues are fine features of repeat block logic. Code should be efficient without breaking design issues, not easy to read.