From: Mark Volkmann Date: 2006-04-11T03:29:00+09:00 Subject: Re: Quick syntax question On 4/10/06, Austin Ziegler wrote: > On 4/10/06, Mark Volkmann wrote: > > That's good to know. I can't see any reason to prefer the second over > > the first. It's a lot more noisy. > > When you're defining a lot of class methods, class << self makes > sense. One or two? Then you may as well use def self.foo if you can. Just expressing personal preference ... even in that case I prefer the first form (using self. on each class method). That way when I look at a method, it's immediate obvious that it's a class method if the name starts with "self.". Otherwise I have to lookup upward in the code to see if the method is contained in a "class << self" -- R. Mark Volkmann Object Computing, Inc.