From: Tim Hunter Date: 2006-03-26T07:29:06+09:00 Subject: Re: Bug: Syntax error when using 'or' keyword Pistos Christou wrote: > > Is there documentation anywhere which describes when to use the English > words versus the symbols, and why? All I know is that the words have > far lower precedence, but up to this point, I have been using them in > favour of the symbols whenever possible, using parentheses to force > evaluation order. > > More and more, though, I feel "discriminated against" by the language, > in that I should always be using the symbols. > > Pistos > The "Expressions" section in Chapter 22 of the Pickaxe, 2nd. ed., contains a table of the Ruby operators in precedence order and, in the "Boolean Expressions" section, some prose that explains the and, &&, or, ||, not and !, and defined? operators.