4 ms·
That's a good point, but those operators have really clearly-defined semantics, so they don't have the ambiguity issue.
by pfraze 12y ago
That's a good point, but those operators have really clearly-defined semantics, so they don't have the ambiguity issue.
- rprospero 12y agoI'll also concede that I've seen some try abominations with oeprator overloading. Would people be willing to compromise with just allowing the overloading of addition, subtraction, multiplication, and division? I know that overloading << or || can lead to some confusing code, but offering the basic arithmetic operators would end 90% of the whining by the people who do scientific code and need this functionality.