io@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 14 小时前with a break statement right?piefed.cdn.blahaj.zoneimagemessage-square33fedilinkarrow-up1434arrow-down113file-text
arrow-up1421arrow-down1imagewith a break statement right?piefed.cdn.blahaj.zoneio@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 14 小时前message-square33fedilinkfile-text
minus-squareSunoc@sh.itjust.workslinkfedilinkarrow-up8·8 小时前It’s C, but the unusual look of having two semicolons is the reason why I prefer it over while (True). It feels more like “here is the weird part”.
minus-squareembed_me@programming.devlinkfedilinkarrow-up3·edit-24 小时前And the rare do { /*loop*/ } while(1);
minus-squaretoynbee@lemmy.worldlinkfedilinkarrow-up2·8 小时前Gotcha, thank you. I mostly code in bash or python.
minus-squareTwilightKiddy@programming.devlinkfedilinkEnglisharrow-up2·4 小时前Well… for ((;;)) do # stuff done
What language is this?
It’s C, but the unusual look of having two semicolons is the reason why I prefer it over
while (True). It feels more like “here is the weird part”.And the rare
do { /*loop*/ } while(1);Gotcha, thank you. I mostly code in bash or python.
Well…
for ((;;)) do # stuff done