hoch@lemmy.world to Programmer Humor@lemmy.ml · 4 个月前More code = more betterimagemessage-square24linkfedilinkarrow-up1282arrow-down15
arrow-up1277arrow-down1imageMore code = more betterhoch@lemmy.world to Programmer Humor@lemmy.ml · 4 个月前message-square24linkfedilink
minus-squarepineapple@lemmy.mllinkfedilinkEnglisharrow-up2·4 个月前Still a mess to read though, anyone revewing the code will be like wtf?
minus-squareferric_carcinization@lemmy.mllinkfedilinkEnglisharrow-up1·4 个月前You 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.
Still a mess to read though, anyone revewing the code will be like wtf?
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.