Re: Re: Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))
| From: | Derick Rethans | Date: | Wed, 13 Jul 2011 16:53:39 +0000 |
| Subject: | Re: Re: Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long)) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53930@lists.php.net to get a copy of this message | ||
On Sun, 10 Jul 2011, Stas Malyshev wrote:
> Hi!
>
> On 7/10/11 9:41 AM, Patrick ALLAERT wrote:
> > I'm sure some projects have defined classes with those keywords in
> > some namespace (to ensure they wouldn't conflict with possible PHP
> > built-in stuff) like in:
> >
> > namespace \Types {
> > class Int {
> > // ...
> > }
> > class Float {
> > // ...
> > }
> > class String {
> > // ...
> > }
> > // ...
> > }
>
> We probably can do it so String is OK, but string is not.
Are you suggesting to make class names case sensitive now? I don't think
that that's what you meant, but it clearly shows that the "probably can"
is "cannot" in your sentence above.
cheers,
Derick