Re: Re: [PHP-PEAR] Comment on Doc - function/method names
| From: | designmm at mail dot designmultimedia dot com | Date: | Wed, 01 Mar 2000 16:25:55 +0000 |
| Subject: | Re: Re: [PHP-PEAR] Comment on Doc - function/method names | ||
| Groups: | php.pear | ||
| Request: | Send a blank email to php-pear+get-58@lists.php.net to get a copy of this message | ||
>
> "Stig S. Bakken" wrote:
> >
> > Ulf Wendel wrote:
> > > I like the idea that methodnames must not contain underscores. I
> > > do not like the idea that (user-) functions should be named with
> > > underscores. These names should be reserved for php functions.
> >
> > Not much left for user functions then? :-) Maybe we should just drop
> > the function naming convention completely.
>
> I don't think so. All I want is to shift the distinction beetween
> user functions (underscore) and user methods (no underscore) to
> user side (no underscore) and php side stuff (underscore).
>
> > > How about taking the java coding conventions but modify
> > > (simplify) it for the needs of php?
What about using some Perl conventions/ideas, have a look at:
http://www.cpan.org/doc/FMTEYEWTK/style/slide-index.html
especially:
http://www.cpan.org/doc/FMTEYEWTK/style/slide6.html
http://www.cpan.org/doc/FMTEYEWTK/style/slide7.html
Also the official CPAN documentation on modules (more what we might be looking to include):
http://www.cpan.org/modules/00modlist.long.html#Part1-Modules:C
Sterling Hughes
sterling@designmultimedia.com