Re: Re: PHP 5.1 (Or How to break tousands of apps out there)
| From: | Jessie Hernandez | Date: | Sat, 26 Nov 2005 06:50:34 +0000 |
| Subject: | Re: Re: PHP 5.1 (Or How to break tousands of apps out there) | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals php.internals |
| Request: | Send a blank email to internals+get-20500@lists.php.net to get a copy of this message | ||
In-Reply-To: <43880213.3020204@php.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Greg Beaver wrote:
> Jessie Hernandez wrote:
>
>>1) Do not allow constants in namespaces, just stick to functions and
>>classes.
>
>
> I am confused as to why we need namespaced constants. Now that we have
> class constants, this is a far better way to "namespace" constants. I
> was also under the impression that this was far more efficient than
> using define() because it can almost always be evaluted at compile-time.
>
> Greg
We don't! Putting constants in classes is fine for me. I have no problem
with removing constants support from my patch. I only added them because
I saw them in the Meeting Notes page that was prepared by, well what do
you know?, DERICK. I guess that requirement can be, uhm, "#ifdef'ed
out", LOL!
Just joking, Derick :-)!
Regards,
Jessie