From: William Djaja Tjokroaminata Date: 2002-09-25T00:40:58+09:00 Subject: Re: Why "and and or" Have Different Association from "&& and ||"? Hi, I tend to agree with Nat, that probably the "English influence" should be diminished in this respect. Well, in Perl there is some "use English" module that will make "and" to replace "&&", etc., but there they are perfectly equivalent. In Ruby, I like that "and, or, not" have lower precedence than the assignments, because in most my code, that is what I want to accomplish (with assignment being the side-effect). But now, we have to put the extra parentheses if the "or" is on the left side of the "and". Doesn't this put an extra work on our brain, even for English-speaking people, as in most other computer languages the "and" (either in "and", "&&", or ".AND." forms) always has higher precedence than the "or"? Regards, Bill ============================================================================= Nat Pryce wrote: >> Because english words "and" and "or" does not have precedence order. > On the other hand, the english word "or" actually means "^" (exclusive > or) rather than "||" (inclusive or). :-)