I use an editor which has an autocomplete functionality, this together with long meaningfull variable name make it work! However I agree with you that I'd rather have an option that makes it mandatory to declare a variable before its use! Benoit "Jim Freeze" <jim / freeze.org> wrote in message news:Pine.BSF.4.32.0105231337180.81587-100000 / www.stelesys.com... > On Thu, 24 May 2001, Dave Thomas wrote: > > > ndrochak / gol.com (Nick Drochak) writes: > > > > > Since Ruby does not require a variable to be declared, do people find > > > that they often have bugs related to mistyping variable names? > > > > Actually, this is not quite a true statement. > > > > The first assignment to a local variable that Ruby sees in a scope > > adds that variable to the scope. If you try to use a name isn't a > > variable in that scope, or that doesn't correspond to a method, you'll > > get a warning: > > > > > > fred = 1 > > bert = frde + 1 > > #=> > > undefined local variable or method `frde' > > Yes, but this does not help when you mispell the left hand word: > > fred = 1 > betr = fred + 1 > > Jim > > ========================================================= > Jim Freeze > jim / freeze.org > --------------------------------------------------------- > No comment at this time. > http://www.freeze.org > ========================================================= >