On Mon, Sep 18, 2000 at 10:16:46AM -0400, John Porter wrote:
> Hildo Biersma wrote:
> > IMHO, mixing procedural and OO interfaces to the same module is a bad
> > idea.  Promoting it in the language is not wise.
> 
> O.k., but that's not the same as disallowing it.  Perl is not a B&D
> language.

I'd just like to second John here.  I've got a couple of modules where
the OO and functional interfaces happen to mesh together beautifully
(Class::Fields is one).  CGI.pm isn't exactly the greatest example of
a combination of the two styles... but from the holy wars which rage
between C<$cgi->param('foo')> and C<param('foo')> regularly, I can see
why it is desired.

But it doesn't have to be easy.


-- 

Michael G Schwern      http://www.pobox.com/~schwern/      [EMAIL PROTECTED]
Just Another Stupid Consultant                      Perl6 Kwalitee Ashuranse
But why?  It's such a well designed cesspool of C++ code.  Why wouldn't
you want to hack mozilla?
                -- Ziggy

Reply via email to