Why is there no or or and ?

Nick Sabalausky a at a.a
Thu Feb 16 21:16:46 PST 2012

"Jonathan M Davis" <jmdavisProg at gmx.com> wrote in message 
news:mailman.450.1329455016.20196.digitalmars-d at puremagic.com...
> Seriously? && and || are _way_ more readible, because they're obviously 
> not
> functions or variables. It's immediately obvious what the operators are 
> when
> scanning code. That's not the case when the operators are words instead of
> symbols. I'm certain that you'd have quite a few programmers up in arms if 
> you
> tried to change && to "and" and || to "or." And having multiple operators
> which do exactly the same thing is a horrible idea which reduces code
> readibility. So, even adding them as alternate options is a really bad 
> idea
> I'm surprised that anyone would think that and was better than &&.

This is why I think people are nuts when they claim that english-like 
VB-style syntax is more readable than C-style.

(Yea, to a grandmother with zero programming experience english-like 
languages are more readable. For a programmer it's worse becase code != 

More information about the Digitalmars-d mailing list