3 ms·
Well, I guess we just disagree on the operator overloading.. I agree that it's fundamentally the same in one sense, but in another sense it's much more likely t
by jbooth 15y ago
Well, I guess we just disagree on the operator overloading.. I agree that it's fundamentally the same in one sense, but in another sense it's much more likely to sneak up on you than method overloading, especially if you're in an environment that doesn't allow monkey-patching. It's always fairly obvious which version of collection.add() you're invoking, and can be much less obvious which version of '+' you're invoking. IMO you need a much bigger productivity win to justify operator overloading, and aside from numerics, it's usually not there.