From: Alan Chen Date: 2002-09-27T06:54:27+09:00 Subject: Re: Ruby - common pitfalls? On Fri, Sep 27, 2002 at 06:37:23AM +0900, Rudolf Polzer wrote: > - the if syntax. Pascal-style if is supported (and one is tempted to use > it instead of the also supported C-style if since parantheses aren't > easy to enter on most keyboards), but comparisons have to be written > in C style. Therefore this happened to me more than once: > > if foo = nil then > # ... > end Note that you get warnings for this when using ruby -w -- Alan Chen Digikata LLC http://digikata.com