Think about Loose Coupling | |
PerlMonks |
Re: GOTO considered (a necessary) evil?by John M. Dlugosz (Monsignor) |
on Jul 15, 2002 at 16:22 UTC ( [id://181842]=note: print w/replies, xml ) | Need Help?? |
In well-defined cases, such as jumping to the beginning or end of a loop, we have special keywords that mean this. It is not as bad as goto because you know what they mean in terms of structure, and we also have idioms that go with them. "Go back to the beginning" is a well-defined point, not a random jump into the middle of the logic. Check out the redo keyword. I've used it in cases like this.
In Section
Meditations
|
|