From: Alan Chen Date: 2002-09-27T07:52:59+09:00 Subject: Re: Ruby - common pitfalls? On Fri, Sep 27, 2002 at 07:37:48AM +0900, Rudolf Polzer wrote: > Scripsit ille Alan Chen : > > 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 > > I know - but then the code already has been written. I think it just has > to be mentioned, not changed. Agreed.. maybe the pitfall is not running with ruby -w during development :) -- Alan Chen Digikata LLC http://digikata.com