From: Peter Szinek Date: 2006-12-20T08:08:48+09:00 Subject: Re: ruby gotchas Mark Guzman wrote: > I've written up some ruby gotchas that have come up while using ruby. > I'm wondering if there are any other gotchas that I should be aware of. > The list is available at: > http://hasno.info/2006/12/14/ruby-gotchas-and-caveats > > I was considering adding &&= to the list as it's functionality seemed a > bit odd to me at first. > --mark > From the 'Ruby way': foo = false bar = true baz = foo or bar baz ends up false (because = has greater priority than or) Cheers, Peter __ http://www.rubyrailways.com