4 ms·
Operator overloading is deliberately more limited in D, with an eye towards discouraging its use for anything other than arithmetic. A couple of operator overl
by WalterBright 6y ago
Operator overloading is deliberately more limited in D, with an eye towards discouraging its use for anything other than arithmetic.
A couple of operator overloading abominations in C++ are iostreams, and a regex DSL (where operators are re-purposed to kinda sorta look like regex expressions).