On Tue, Aug 08, 2006 at 11:14:40 +0000, Luke Palmer wrote: > Mail::TheOneTrueWay.new.header; # which one?
Either neither, or the "default" one (which is declared default by the class). > A related question: if Mail::SomeAPI and Mail::SomeOtherAPI both > exported a method, say "send", and you mentioned it outside the weak > role blocks, which one does it call. If "mentioned" means used, then that's a conflict. If it gets that far you *really* need a delegate. If "mentioned" means declared than neither - it's the same one for both. > Well, yeah, but I think they're the right solution. They may be right, but it's hard to get an organically growing community to design their code for them. I personally prefer delegates for almost any design dillema, but most CPAN modules aren't that way. <snipped stuff about adaptors> Yes, this is necessary for anything heavyweight and probably better design, but again, hard to encourage on a wide scale. > Oh, and hello everyone. Long time no see :-) Welcome back =) -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418
pgppRdobmMO5g.pgp
Description: PGP signature