Reddit: why aren't people using D?

Walter Bright newshound1 at digitalmars.com
Thu Jul 23 21:49:29 PDT 2009


> no overloading of !, &&, ||,

What bothers me about overloading && and || is they are control flow 
constructs, not really "operators". For example, ?: is also a control 
flow operator, and it sensibly isn't overloadable in C++.

What if you could overload if..else.. statements? I'm sure someone 
somewhere could find a use for that, but it's still not a good idea.



More information about the Digitalmars-d mailing list