views:

102

answers:

1

Hello, some time ago I found an article (Roles: Composable Units of Object Behavior) describing the pros of using Roles versus Interfaces or other ways of dealing with behavior requirements. Does any of you knows where I can find more literature about that, or knows more about Roles?

I know that that's almost a research topic, but maybe someone (maybe some Perl programmer) has tried something with it (Moose?).

Note: the reason for adding tag "perl" is that maybe Perl programmers are more likely to give an answer.

+3  A: 

For Moose based examples, you should check this and that example and this specification.

ETA: For the theoretical aspects, see this page

Leon Timmermans
I know, but I also wanted to learn more about the Roles base theory, not only in Perl ...
tunnuz
Thank you Leo, so Traits == Roles?
tunnuz
Roles are an implementation of Traits, though there are a couple of small differences. Traits are a bit more 'pure'
Leon Timmermans
Thank you, again.
tunnuz