Re: Reserved namespaces
| From: | Greg Beaver | Date: | Mon, 26 Jan 2009 13:44:48 +0000 |
| Subject: | Re: Reserved namespaces | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42850@lists.php.net to get a copy of this message | ||
Alain Williams wrote:
> On Mon, Jan 26, 2009 at 01:06:01PM +0100, Christian Schneider wrote:
>> Things gettings reserved at a later stage (like originally keywords, now
>> namespaces) can lead to a big deal of frustration. Therefore I think it
>> is crucial to have a clear naming guide now.
>
> +1
>
>> And these guidelines have to be noticed by everybody who starts to use
>> namespaces so they have to be placed prominently.
>
>> Personally I'd even prefer them to be enforced in code so they can't be
>> missed.
>
> No:
> * there are occasional times when rules might want to be broken
> * to enforce it just makes the language/compiler bigger
> * If it is advertised and someone breaks the rules - then it is their problem.
>
>> Removing restrictions later on causes less trouble so I wouldn't mind
>> too much if a couple of namespaces (or namespace prefixes) are reserved
>> but never used.
>
> As I suggested, do it the way that perl does: it is keyed off the case of the characters.
> So, the reserved spaces could be one of:
>
> 1) entirely lower case (or perhaps just start with lower case)
> 2) entirely upper case
People, can we all agree to remember that PHP is case-insensitive with
the exception of variable names and a few constants?
Thanks,
Greg