On Tue, Aug 08, 2000 at 11:36:38PM +0200, Bart Lateur wrote:
> On Tue, 8 Aug 2000 14:22:20 -0500 , Garrett Goebel wrote:
> 
> >What's the conventional wisdom on creating a module that supports both an OO
> >and non-OO interface? Are there any CORE or CPAN modules to serve as a
> >textbook, or is the anwser "Don't do that"? 
> >
> >I've got some code that checks the first parameter passed to see if it is a
> >reference, assumes any reference is an object reference... and then proceeds
> >accordingly. -It feels pretty sloppy, but it works.
> 
> Gee, I wonder what this is doing on the Perl6 mailing lists. But, maybe
> there are some lessons to be learned, so...

Well yes. We do have one such module, File::Spec. So the question is probably
valid in that should we have this kind of API in the stdlib, or
should we just stick with one or the other or should it be two modules.

Graham.

Reply via email to