Re: Class name clashing
| From: | Ralph Schindler | Date: | Thu, 08 Mar 2007 21:05:38 +0000 |
| Subject: | Re: Class name clashing | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28302@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
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. Its super frustrating when so many common words are marked as 'php scanner reservered' even when my context of use is completely different. Or, how about creating a language thats always striving to be better.. With the adoption of PHP5 also comes the increased adoption of OOP.. and this issue is a speed bump. Anyway, I write so that perhaps, maybe, just maybe, someone might want to see whats involved instead of simply writing off this request.... Thanks, -ralphIs 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?