From: David Naseby Date: 2004-02-14T21:01:25+09:00 Subject: Re: OT: Traits > -----Original Message----- > From: Yukihiro Matsumoto [mailto:matz@ruby-lang.org] > > |Since I haven't seen a full discussion on the topic, I thought I would > |see what Ruby programmers think of "traits" as an OO concept. Cool > |idea? Or a solution in need of a problem? > > "module" in Ruby and "trait" are very similar idea. > I've just done a writeup of Traits in Ruby on my blog (http://homepages.ihug.com.au/~naseby/33.html). I think, in summary, that traits are a solution to a problem that may cause more problems, if implemented in a language without a good browsing IDE (ie, pretty much anything except Smalltak). I like the finer grained composition in theory for its flexibility, and I like the level of library support that a traits implementation can provide over and above straight Ruby modules. But its probably not worth the trouble.. David http://homepages.ihug.com.au/~naseby/