8 ms·
Operators are no more or less explicit than functions or methods. "+" and "Add" are just as explicit. A difference is that operators tend to have semantic bagg
by masklinn 11y ago
Operators are no more or less explicit than functions or methods. "+" and "Add" are just as explicit.
A difference is that operators tend to have semantic baggage, which can be a huge boon when using operator overloading for e.g. calculations. C++ has demonstrated that it was a very bad idea to overload operator against their semantic baggage, but the lesson to draw from it is "don't do that" not "operator overloading is the devil".