4 ms·
> Lots of features that just don't carry their weight (operator overloading). Operator overloading is crucial for things like graphics and bignums—basically, h
by pcwalton 13y ago
> Lots of features that just don't carry their weight (operator overloading).
Operator overloading is crucial for things like graphics and bignums—basically, heavy math operations over anything that isn't a primitive.
- rayiner 13y agoIts a trick pony. I don't think that use is enough to carry its weight. Also, abusing it immediately in the streams library just encouraged people to find elaborate nonsensical uses for it.
- mpyne 13y agoOperator overloading is very useful in the context of generic code though (through templates). I've programmed C++ for probably more than a decade now and I've been bitten by many of its features at some point, but operator overloading would rank right near the bottom of my burn list. It can be abused, that's for sure, but so can many C features.