baatliwala@lemmy.world to Programmer Humor@programming.dev · 25 days agoLook at the way he writes for loops too smhlemmy.worldimagemessage-square39linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageLook at the way he writes for loops too smhlemmy.worldbaatliwala@lemmy.world to Programmer Humor@programming.dev · 25 days agomessage-square39linkfedilink
minus-squareChickenLadyLovesLife@lemmy.worldlinkfedilinkEnglisharrow-up0·24 days agoMy favorite: for (int i = myArray.Length; i --> 0; ) { //do something } Perfectly valid in C-style, even if it does look a bit puzzling at first.
minus-squareChickenLadyLovesLife@lemmy.worldlinkfedilinkEnglisharrow-up0·24 days agoFrom the river to the C
My favorite:
for (int i = myArray.Length; i --> 0; ) { //do something }Perfectly valid in C-style, even if it does look a bit puzzling at first.
That should be a war crime.
From the river to the C