hoch@lemmy.world to Programmer Humor@lemmy.ml · 8 months agoMore code = more betterimagemessage-square24linkfedilinkarrow-up1283arrow-down15
arrow-up1278arrow-down1imageMore code = more betterhoch@lemmy.world to Programmer Humor@lemmy.ml · 8 months agomessage-square24linkfedilink
minus-squareferric_carcinization@lemmy.mllinkfedilinkEnglisharrow-up1·8 months 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.