On Mon, Sep 18, 2000 at 12:53:32PM -0400, Michael G Schwern wrote:
> 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.

But it needs to be fast. CGI.pm, which is probably the biggest contender
for this, is widely know to be the default module to use if you want
to write CGI. The way it currently does this dual interface is one of
the reasons the module is quite slow and thus gives perl a bad name as
a CGI language for performance reasons.

Graham.

Reply via email to