Re: Class name clashing
| From: | Derick Rethans | Date: | Fri, 09 Mar 2007 07:57:25 +0000 |
| Subject: | Re: Class name clashing | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28306@lists.php.net to get a copy of this message | ||
On Thu, 8 Mar 2007, Ralph Schindler wrote:
> Stanislav Malyshev wrote:
> > > Is it still the position of internals that reserved words cannot be used
> > > as method names or class names?
> >
> > Why allow it? It would probably require substantial change in the parser,
> > and what for?
> >
>
> I guess so that we can have a language that will be able to model real world
> problems... instead of the real world changing the name of the problem to fit
> the language.
You should prefix your classes in the first place, as per:
http://www.php.net/manual/en/userlandnaming.php
especially point 1 of:
http://www.php.net/manual/en/userlandnaming.rules.php
regards,
Derick