Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Why are these called 'roles' and not 'interfaces'? They seem the same as C++ or Java interfaces.
    • by Ovid (2709) on 2009.03.18 14:02 (#67851) Homepage Journal

      For a variety of reasons they're significantly different. Amongst other issues, C++ and Java interfaces provide no implementation, nor do they offer conflict resolution. See the link dagolden provided for an in depth tour of roles (known also as "traits").

      • That question makes it sound like interfaces in C++ and Java actually work. (I suppose they work as designed, which makes them that much worse.)