On Thu, Jul 08, 2004 at 04:37:06PM -0400, Michael G Schwern wrote: > With inheritence, only one variant can be used at a time. > > With event subscribers, lots of variants can be used at a time. > > Consider what happens when you want to use Test::AutoDebug and a hypothetical > module which colors failure diagnostics. If they're both implemented as their > own Test::Builder subclasses only one can be in operation at a time. With > an event model they're just hooking into the existing object and can > both be informed of an event and take whatever action they like.
That's fair enough but to get the diag colourer and every other possibility would require event hooks in a variety of places. Test::Builder's interface is not so complicated so it's not such a big undertaking. The main point was that the OO way works right now, F