Re: Re: Basic Namespace Requirements
| From: | Jason Garber | Date: | Mon, 28 Nov 2005 22:48:12 +0000 |
| Subject: | Re: Re: Basic Namespace Requirements | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20791@lists.php.net to get a copy of this message | ||
Hello Sara,
Please explain what the difference is between nested classes, and
this type of namespacing?
If you scrapped namespace constants and functions, then all we have
left is classes. If it was looked at as nested classes, then we get
all the functionality with all the simplicity and the benefit of
being able to use "::".
Please take a moment to explain, because I am an avid user, not a
tokenizer :)
--
Best regards,
Jason mailto:jason@ionzoft.com
Monday, November 28, 2005, 5:25:41 PM, you wrote:
>> So, the question is, can we scrap both namespace constants and namespace
>> functions and just stay with classes (as was agreed on several months ago,
>> Andi himself agreeing to it)? This would make the patch smaller, simpler,
>> AND would allow me to reuse the "::" operator (and there would be no
>> conflicts with ternary operations).
>>
SG> Absolutely. Static methods and Class constants are more than sufficient.
SG> All the added functionality of namespaces without all the baggage.
SG> +1
SG> -Sara