James Edward Gray II wrote: [...] >> Even Apps Hungarian is not a great idea in OO code. Instead, just use >> the type system, so that distance would be a Kilometer object and >> correction would be a Foot object. Kilometer.+(foot) could then either >> raise an exception or invoke a conversion. > > I would like to see us move away from considering classes to be types at > all in Ruby. Who knows what modules an object has mixed into it and who > knows what singleton methods are defined on it. Do you make much use of singleton mixins or singleton methods in your code? I know I don't. > A class, which is what > people traditionally take for the type, is just one piece of an object's > identity. You're right. But with a proper class system, my point about not needing Apps Hungarian in Ruby still stands, I think. Do you disagree? > > James Edward Gray II Best, -- Marnen Laibow-Koser http://www.marnen.org marnen / marnen.org -- Posted via http://www.ruby-forum.com/.