hoch@lemmy.world to Programmer Humor@lemmy.ml · 25 days agoMore code = more betterlemmy.mlexternal-linkmessage-square25fedilinkarrow-up1279arrow-down16
arrow-up1273arrow-down1external-linkMore code = more betterlemmy.mlhoch@lemmy.world to Programmer Humor@lemmy.ml · 25 days agomessage-square25fedilink
minus-squareferric_carcinization@lemmy.mllinkfedilinkEnglisharrow-up1·25 days agoYou could do a lot worse. If the type of i was an object, you could overload the negation operation to have side-effects for the third snippet, for example.
You could do a lot worse. If the type of
iwas an object, you could overload the negation operation to have side-effects for the third snippet, for example.