|
![](/i/fill.gif) |
Warp wrote:
> What if the operator is something else? How fast can you decipher it
> with this simple change:
>
> #if ((0.25 < clock) | (clock < 0.75))
You know it's wrong. :) & goes there if the variable's in the middle, |
goes there if it's on the outside.
Just like if you saw
for (i = 0; i <= count; i++)
you'd know it's probably wrong and you need to look close to make sure.
> I usually read from left to right. I'm not a Chinese.
When the expression gets complex, it's harder, yes. With simple stuff,
you can see both sides of the equation at once. As I say, like counting
starting from zero, it takes seeing it a few times for it to be comfortable.
Of course, Cobol got this bit right, I fear. :-) There's a couple other
languages that let you write
if (x < y < z)
but I don't remember just what they are.
(Chinese goes top to bottom, btw. :-)
--
Darren New / San Diego, CA, USA (PST)
Luke, the Force is a powerful ally,
second only to The QuickSave.
Post a reply to this message
|
![](/i/fill.gif) |