Re: Coding standards
| From: | Tomas V.V.Cox | Date: | Sun, 15 Jul 2001 15:24:24 +0000 |
| Subject: | Re: Coding standards | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-790@lists.php.net to get a copy of this message | ||
Erik Hjortsberg wrote:
>
> At 16:57 2001-07-15 +0200, you wrote:
> >Erik Hjortsberg wrote:
> > >
> > > Is there a reason for us not to make disinction between static and entity
> > > methods and between private and public methods?
> > > I find it very hard to look through the code to figure out which methods I
> > > can call when subclassing or using objects or using classes.
> > > I've always used capitals on static methods and underscore on private.
> > > Thus:
> > > function foo() -- public entity method
> > > function _foo() -- private entity method
> >
> >+1 nice convention
> >
> > > function Foo() -- public static method
> > > function _Foo() -- private static method
> >
> >+0 (but probably don't want much this)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Hmm, I don't undestand what you mean.
>
This means, "abstention on this topic" but if you ask my personal
opinion without waiting for other opinions "prefer not follow it" :)
Tomas V.V.Cox