Quote:
Originally Posted by Arhowk
it doesn't really matter. "break" exits the loop while "return" exits the method. if you have code after the loop which you want to run than "break" should be used. if you want to terminate the method entirely and skip methods after the loop (or if you have no loops), than "return" should be used. if your entirely in a loop with no code after the loop, it doesn't matter.
Though, for uniformity sake, they should all probably be the same.
|
So I should change all of the breaks for the functions to returns just to make everything look nice?