• schnurrito@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    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).