Why is there no or or and ?
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
> functions or variables. It's immediately obvious what the operators are
> 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
> 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
> 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