▲ | oezi 20 hours ago | |||||||
You are right on return (use next in a block), but break uses block scope. | ||||||||
▲ | judofyr 19 hours ago | parent [-] | |||||||
Maybe I explained it a bit imprecise. I was trying to explain the following behavior:
This only prints "1" because the break stops the execution of the invoked method (foo). | ||||||||
|