in reply to Class::Trait to the CPAN?
Particularly in interesting areas like this where there's active ongoing discussion and consideration, I think it's helpful to have a handful of different implementations available that people can put through their real-world paces... And looking at different takes on a similar problem can help to clarify some of the core commonalities and separate out various useful idioms.
In response to the questions in the OP, no, I haven't yet used a traits-based system, but I have spent a bunch of time hacking different types of method aggregation, generation, and composition techniques in Perl, so yes, I would be interested in seeing how or if traits would help me address some of the same concerns.
It would be very helpful to have a more realistic example that both synopsized the Class::Trait interface and also demonstrated how such traits can be useful... I haven't yet been able to visualize a compelling example case, but I'll give it some more thought.
|
|---|