Re: Simple Namespace Proposal
| From: | Richard Lynch | Date: | Thu, 12 Jul 2007 00:45:02 +0000 |
| Subject: | Re: Simple Namespace Proposal | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-30806@lists.php.net to get a copy of this message | ||
On Mon, July 9, 2007 2:49 am, Stanislav Malyshev wrote:
>> +1 for braces.
>>
>> <?php
>> function
>> super_common_function_every_namespace_in_my_project_uses(){
>> }
>>
>> namespace A::B {
>> function foo() {
>> //arcana of A::B stuff
>> }
>> }
>> ?>
>
> That's what I would like to avoid. Because if you need namespaces,
> then
> you want to segment your naming space. If you in the same time pollute
> the global space with non-namespaced function names, the whole
> namespace
> business is kind of meaningless. Or you want your library not
> polluting
> global space, or you don't.
But some functions ARE so super-common, across the board, that I just
plain don't want them buried in some namespace...
I don't think I'm the only one on this...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?