good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
IMHO there's nothing wrong with it.
Some languages (like Eiffel) disallow such a construct to make it easier to prove the correctness, and to get a better idea about the flow of the program (which is in this case: it runs through the method until it hits the end of that method). But I found return and last useful at times, and wouldn't want to miss it. In reply to Re: "return" to break out of a loop
by moritz
|
|