[Melbourne-pm] Interface Classes
ajsavige at yahoo.com.au
Thu Mar 23 13:07:55 PST 2006
--- Scott Penrose wrote:
> But... in Perl we don't have the Interface that Java does...
I just stumbled on this node today:
Notice that Perl 6 prefers the concept of "roles" to "interfaces",
AFAICT because, though interfaces are great for enforcing a
consistent interface across classes, they don't provide any
help at all with code reuse.
To get a feel for Perl6-style roles in Perl 5, have a look at:
Messenger - Make free PC-to-PC calls to your friends overseas.
More information about the Melbourne-pm