in reply to Will role-based programming be part of the standard Perl 6 distribution?
Yes, roles will be part of the standard Perl library.
One benefit of roles that you do not mention (and, to me, the largest benefit) is that they're less restrictive than inheritance (and work better with prototyping). does() doesn't enforce how a class fulfills a role. isa() does.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Will role-based programming be part of the standard Perl 6 distribution?
by simonm (Vicar) on Dec 22, 2003 at 21:08 UTC | |
by chromatic (Archbishop) on Dec 22, 2003 at 21:14 UTC |