Have you ever used traits in any language?Except for some exercises about interfaces I did during a Java course, the answer is no.
Would you use a traits implementation in Perl?Unlikely.
How would you improve the interface above?No constructive answer. But looking at your code, I'm at a loss as what is happening. I'm trying to map it on Java's interface model, but I don't succeed. This maybe though because I remember Java's interface model wrongly.
Abigail
In reply to Re: Class::Trait to the CPAN?
by Abigail-II
in thread Class::Trait to the CPAN?
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |