Why is there no or or and ?

Caligo iteronvexor at gmail.com
Thu Feb 16 20:31:18 PST 2012

C++ has this and it makes code little more readable in certain cases:

if(something() or foo() and bar()){  ... }

instead of this in D:

if(something() || foo() && bar()){ ... }

possible enhancement request?  or is there a good reason it is not in
the language?

More information about the Digitalmars-d mailing list