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