• schnurrito@discuss.tchncs.de
    link
    fedilink
    arrow-up
    4
    ·
    22 days 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).