in reply to "return" to break out of a loop
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "return" to break out of a loop
by phaylon (Curate) on May 13, 2008 at 18:49 UTC |