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

In reply to RFC: Class::Trait released by stvn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.