For-loops in Java don't require any code in the body. I can't control what you do with that information.image Prof. Sweetlove ( @prof@beehaw.org ) Programmer Humor@lemmy.ml • 1 year ago message-square2arrow-up134
arrow-up134imageFor-loops in Java don't require any code in the body. I can't control what you do with that information. Prof. Sweetlove ( @prof@beehaw.org ) Programmer Humor@lemmy.ml • 1 year ago message-square2
Reposting this abomination from my Reddit Account because this is important information. Uncle Bob would be proud.
minus-square Posts ( @Posts@discuss.tchncs.de ) linkfedilink7•1 year agoWell now I just wanna see more for-loop one-liners!
minus-square Leo Uino ( @lwhjp@lemmy.sdf.org ) linkfedilink3•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 :)