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
    Yes, roles will be part of the standard Perl library.

    Or as I understand it, part of the core language.

      That's true, but it's at least as important that the core libraries use does() instead of isa() (or its replacement) when checking object-typey things. Libraries should be extensible without dictating too much of their usage.