Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • My brain keeps telling me that is a great way to pass methods around. More thought is needed.
  • Hi Ovid!

    Thanks for the explanation. I understood everything (or at least hope I did). Traits sound very cool and everything, and I'll keep them in mind if I ever find a need to use them.

    Also thanks for working on the module! <hug />

    BTW, how are traits related to Perl 6's Roles? Or to Class::Roles? I sort-of was told that they are related on IRC once. I should note that I could not understand what Roles are from the OOP Apocalypse, and no one yet was able to explain to me what they were. (inc

    • Traits are pretty much the same thing as Perl 6 roles. However, the original trait descriptions did not allow for the application of traits at runtime. Perl 6 roles do and some of the CPAN implementations for Perl 5 do allow runtime application.

      As for how Class::Trait compares with Class::Role, see this comparison [perl.org] (that link also includes a couple of comments about Class::Roles).

      It's clear to me now that Class::Trait needs to support runtime trait application, so this is my next major step.