3 ms·
…yes, that is what I said people need to understand in operator-overloading-happy environments.
by zbentley 1y ago
…yes, that is what I said people need to understand in operator-overloading-happy environments.
- jcelerier 1y agoThe problem is having the idea than an operator can only represent one thing while in math there's no such rule - people should start programming without the broken mindset that an operator only means one thing, and then things become much easier. Operators are functions, functions can be overloaded and come with default overloads for specific types: adding a special case makes it more complex.