From: "Hal E. Fulton" Date: 2002-12-02T02:18:29+09:00 Subject: Re: Ruby Document ----- Original Message ----- From: "Dave Thomas" To: "ruby-talk ML" Sent: Sunday, December 01, 2002 10:18 AM Subject: Re: Ruby Document > "Gavin Sinclair" writes: > > > I would do > > > > NOUN = :NOUN > > VERB = :VERB > > ... > > > > if word.type == NOUN ... > > > > Your way is prone to evil spelling mistakes! > > If you do that, is there a reason not to take the next step? > > if word.type == :NOUN This test would always test false (because of the misspelling): if word.type == :NUON Otherwise it would be caught as an error. That's what I think he means. Hal