From: Robert Klemme Date: 2008-03-30T02:00:07+09:00 Subject: Re: Boolean Operators On 29.03.2008 00:22, Mark Dodwell wrote: > I know that the 'and' and 'or' operators in ruby have the same > precedence, and '&&' has a higher one than '||' - but is there a best > practise for which one to use when precedence isn't important? I usually use && and || because they visually stand out better than "and" and "or" and can be used with assignments (higher precedence than "="). I use "and" and "or" rather seldom mostly when chaining commands as in foo = doit() and puts foo YMMV Kind regards robert