3 ms·
Agreed. Explicit is better than implicit in this case (and most, if not all, cases).
by necessity 11y ago
Agreed. Explicit is better than implicit in this case (and most, if not all, cases).
- masklinn 11y agoOperators 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".