*blink* That's neat.

Paul Prescod paul at prescod.net
Wed May 31 01:53:57 EDT 2000


Martijn Faassen wrote:
> 
> ...
> 
> But if certain HCI people
> produce research that shows 'and' and 'or' are about the worst names for
> these operators, then I'd indeed question that research and those particular
> HCI people. There isn't actually such research, is there, though, I assume?

Well, speaking anecdotally, I remember years ago when I was learning to
program and I had trouble with those operators. I admit that I can't
remember exactly what the trouble was now, but for some reason I often
got them reversed.

I think that "orelse" gives a better feeling of proceeding from one test
to another. The corresponding replacement for "and" is "andalso". I
think that these names also give a hint of the short-circuiting nature
of the operators...

-- 
 Paul Prescod  - ISOGEN Consulting Engineer speaking for himself
"Hardly anything more unwelcome can befall a scientific writer than 
having the foundations of his edifice shaken after the work is 
finished.  I have been placed in this position by a letter from 
Mr. Bertrand Russell..." 
 - Frege, Appendix of Basic Laws of Arithmetic (of Russell's Paradox)




More information about the Python-list mailing list