On Sat, 3 Nov 2001, Gerald Richter wrote:

> > Personaly this whole section stinks. People use different methods, but for
> > me, I try and avoid direct @_ access unless absolutely necessary. For
> > method calls I prefer:
> >
> >   my $self = shift;
> >   my ($param1, $param2) = @_;
> >
>
> Why not
>
> my ($self, $param1, $param2) = @_;

I just see it as explicit - one thing is the "this" object, and the other
is parameters. Perl's OO sucks in this way, so if I make it explicit it's
more manageable for me personally. Plus if I ever switch to named params
it's slightly easier.

-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\

Reply via email to