* Andrew Savige <[EMAIL PROTECTED]> [2005-02-28 10:25]:
> Naming. I wonder if your:
> 
>         { use_return => 1 },
> 
> is the recommended Perl style for named parameters? I thought
> not until I noticed HTML::Parser uses this style.

File::Find also uses this. So do a large number of OO modules
which use named parameters. This style follows accepted naming
practice for variables and subs/methods.

> Alternatives are CamelCase style (a la XML::Parser, for
> example):

Yuck. We look down on that in variable and sub/method names; why
would we prefer it for hash keys?

> or dash-option style (a la CGI, for example):

Ech! This meme should be killed with great prejudice. It makes
code noisy for no good reason. Try reading the source of a
complex Tk GUI and tell me if you don't think it looks ugly and
messy. Four thumbs down to this idea.

Regards,
-- 
#Aristotle
*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;

Reply via email to