From: Morton Goldberg Date: 2008-02-17T08:50:29+09:00 Subject: Re: Use of ? in variable names On Feb 16, 2008, at 1:04 PM, Michael Brooks wrote: > Hello everyone: > > Why can't I name boolean variables with a "?" on the end? The "?" > can be used on the end of methods but not variable. Because the rules for naming methods are different from the rules for naming variables. > So why isn't this allowed? Did I miss something? You aren't missing anything -- you're just in denial over Ruby's lexical rules. Maybe you can convince Matz to change the rules to way you want them to work. But I doubt it. Regards, Morton