From: Robert Klemme Date: 2008-03-30T21:35:06+09:00 Subject: Re: Boolean Operators On 30.03.2008 14:16, Rick DeNatale wrote: > On 3/29/08, Robert Klemme wrote: >> I use "and" and "or" rather seldom mostly when chaining commands >> as in >> >> foo = doit() and puts foo > > Keeping in mind that using && instead of and here has quite a > different result, even after adjusting the syntax of the puts call: Which is the precise reason why I would use "and" in this case. Note that I wrote "seldom" so this is not a too frequent idiom I employ. > rather than splitting it into two lines, perhaps replacing the and > with a semi-colon or otherwise steppng back and micro-refactoring the > code to make it clearer. > > But I could be wrong. I don't think so. This is also a question of personal style and I don't find anything wrong with your approach. Kind regards robert