3 ms·
I see the overloading of operators to do fundamentally different sorts of operations as a mistake in all cases. That's not to imply that (in a language with inf
by Zak 17y ago
I see the overloading of operators to do fundamentally different sorts of operations as a mistake in all cases. That's not to imply that (in a language with infix syntax) operator overloading is bad, but that it should be used to add the same kind of operation to a new situation. Overloading + to work with a fixed-point math library makes sense. Overloading + to do concatenation does not.