From: Clemens Hintze Date: 2000-03-03T11:29:29+01:00 Subject: [ruby-talk:01707] Re: Conventions for our Ruby book Yukihiro Matsumoto writes: > Hi, > > In message "[ruby-talk:01701] Re: Conventions for our Ruby book" > on 00/03/03, Clemens Hintze writes: ... > Using `::' for class methods are OK, I even recommend it. But > aren't we discussing the notation for instance methods? I vote for > `#' for instance methods. I think, we would not have to differentiate class from instance methods, would we? If we would, we could write in examples: d = Dir::new # for class methods, and d.chdir(...) # for instance methods. But I think, we need a way to express where I can find a method, if I search it. Here I think, it is okay to use '::' only (if we need vaid syntax), or '#' otherwise. In such a description Dir#chdir or Dir::chdir would mean to me: method 'chdir' defined in namespace/module/class 'Dir'. Here it would be regardless, if the method is a class or instance method. Just an idea :-) > matz. \cle