From: Joel VanderWerf Date: 2006-03-17T08:56:32+09:00 Subject: Re: [OT] Rant about keyword logical operators was : (Re: [ ruby-Bugs-3843 ] "not" operator used in expression that is a method parameter can generate syntax error) Zev Blut wrote: > In my fantasy Ruby these keyword logical operators would not exist or > they would be the same precedence. But consider the difference: x = h && h[4] x = h and h[4] x = gets and x.display x = gets && x.display It's really nice having both an operator ("&&") and a control structure ("and") that behave the way you want them to (as in the first line of each pair). -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407