You can have a non-infinite loop without a break statement, you just need a return statement in it. Also for(;;) is much faster to write than while(true).
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: