This all started with this node by Ovid. He had done an initial implementation of traits, and after reading all the papers I could find on them, I had begun to think about building one too. We talked and decided to collaborate. Due to work responsibilities Ovid was only able to contibute some tests and discussion to this release. So I will have to take the blame for at least this version of this monstrosity.

I am posting this not as an annoncement, but specifically as a request for comment (hence the RFC in the node title). The traits implementation in this module is largely feature complete according to the papers (or rather my understanding of the papers), but it is sorely lacking in other areas. First is tests, there are only 37 of them, which is no where near enough. Second is documenation, my initial draft is up there, but I am no technical writer, so I feel its soo-soo at best. I am trying to keep this reasonably in line with Traits as described in the papers, and not stray too far from that model. In other words, this is not an attempt at Perl6 type Roles (see Class::Role or Class::Roles for that).

I would appreciate any feedback from the community on the module, and welcome any suggestions and contributions as well. I also will be happy to help anyone who wants to experiment with this module, and to try to fill in the details not found in the documentation.

Class-Trait-0.01

Thanks in advance,

-stvn