RE: [PEAR-DEV] Common method names part 2
| From: | Lukas Smith | Date: | Sat, 21 Sep 2002 15:48:15 +0000 |
| Subject: | RE: [PEAR-DEV] Common method names part 2 | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-9282@lists.php.net to get a copy of this message | ||
> From: Bertrand Mansion [mailto:bmansion@mamasam.com]
> Sent: Saturday, September 21, 2002 5:34 PM
>
> <tal@php.net> wrote :
>
> > Martin Jansen wrote:
> >> On Fri Sep 20, 2002 at 01:0503AM +0300, Mika Tuupola wrote:
> >>> On Thu, 19 Sep 2002, Markus Wolff wrote:
> >>>>> Other possibilities: init(), constructor(), ...
> >>>> I always use Class::Create(), and I often use init() for other
things.
> >>>> I´ll accept any of the above, but wouldn´t like to use init(), as
I´d
> >>>> have to rewrite some stuff :-)
> >>> create() is quite logical since it creates and returns an
> >>> instance of the class and init() is more of initialization
> >>> of variables etc. If theres gonna be a (proposed) standard
> >>> i'd vote for create() too.
> >> +1 for create().
> > +1 here too.
>
> -1, I'm for init() just like it is in some other languages.
> This way, developers don't get mistaken.
>
whatever the final decision is:
please only make this a recommendation! and not a requirement
regards,
Lukas