On Wednesday, 24 February 2016 at 08:46:40 UTC, wobbles wrote:
On Wednesday, 24 February 2016 at 07:23:03 UTC, Suliman wrote:
On Wednesday, 24 February 2016 at 07:19:02 UTC, Walter Bright
wrote:
It's a matter of taste I think.
I find 'and's and 'or's less readable than && and ||.
I suspect that's because I'm used to looking at them.
Well, I use "&&" and not "and" in C++, although I think I ought
to use "and" because long sequences of sigils is harder to
separate. If anything the fact that C++ programmers don't use
"and" and "or" shows how strong the effect of cultural influence
is on "spelling". I am pretty sure that if "&&" had been
introduced later than "and", then the roles had been switched.
Interestingly Pony is enforcing parentheses on most operators,
under the assumption that programmers often get precedence rules
wrong. Which is good for correctness. They could probably loosen
it up a bit, but it is better than what we see in the C-family of
languages.