Prof. Sweetlove@beehaw.org to Programmer Humor · 1 year agoFor-loops in Java don't require any code in the body. I can't control what you do with that information.beehaw.orgimagemessage-square5fedilinkarrow-up177arrow-down13file-text
arrow-up174arrow-down1imageFor-loops in Java don't require any code in the body. I can't control what you do with that information.beehaw.orgProf. Sweetlove@beehaw.org to Programmer Humor · 1 year agomessage-square5fedilinkfile-text
Reposting this abomination from my Reddit Account because this is important information. Uncle Bob would be proud.
minus-squarePosts@discuss.tchncs.delinkfedilinkarrow-up15·1 year agoWell now I just wanna see more for-loop one-liners!
minus-squareLeo Uino@lemmy.sdf.orglinkfedilinkarrow-up17·1 year agoThere’s always the classic C strcpy :) char *strcpy(char *dest, char *src) { char *p = dest; while (*p++ = *src++); return dest; }
Well now I just wanna see more for-loop one-liners!
There’s always the classic C strcpy :)
char *strcpy(char *dest, char *src) { char *p = dest; while (*p++ = *src++); return dest; }
Thanks I hate it
I don’t see the point of it 🌝
Oof.