3 ms·The first doesn't do control flowby bouk 3y agoThe first doesn't do control flowrcme 3y agoDepends how getNext is defined.alphazard 3y agoThe only way to do control flow in getNext, consistent with how you partially defined it, is to panic. That means there is some important code wrapping the whole loop body that you left out.zeroxfe 3y agoThat doesn't make sense. `getNext()` has no ability to break out of the loop.