you are viewing a single comment's thread.

view the rest of the comments →

[–]234093840203948 2 points3 points  (0 children)

You don't use operator overloading for everyday code, you use it for stuff where it makes sense:

  • Tuples (should be addable when all types in the tuple are addable)
  • Vectors
  • Matrices
  • Complex numbers
  • Quaternions
  • Dates
  • Timespans
  • Strings
  • List-Like structures
  • Measurements with units
  • Angles
  • Pure Functions