you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 11 months ago

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.

  • source
  • parent