io@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 1 day agowith a break statement right?piefed.cdn.blahaj.zoneexternal-linkmessage-square40fedilinkarrow-up1579arrow-down115file-text
arrow-up1564arrow-down1external-linkwith a break statement right?piefed.cdn.blahaj.zoneio@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 1 day agomessage-square40fedilinkfile-text
minus-squareSunoc@sh.itjust.workslinkfedilinkarrow-up11·1 day agoIt’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-up5·edit-21 day agoAnd the rare do { /*loop*/ } while(1);
minus-squaretoynbee@lemmy.worldlinkfedilinkarrow-up2·1 day agoGotcha, thank you. I mostly code in bash or python.
minus-squareTwilightKiddy@programming.devlinkfedilinkEnglisharrow-up3·24 hours agoWell… 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