Re: my last attempt at sanity with namespaces
| From: | Greg Beaver | Date: | Thu, 16 Oct 2008 21:07:15 +0000 |
| Subject: | Re: my last attempt at sanity with namespaces | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41168@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
> Hi!
>
>> http://wiki.php.net/rfc/namespaceissues
>
> My opinion for the proposals:
> A. I'm ok with use namespace, but it is inferior to the -> proposal.
> While it allows explicit disambiguation, it does not allow to call
> both in the same file. I'm not sure it's too much of a problem but
Hi,
It does not allow calling both with the same import name, but it does allow:
<?php
namespace blah;
include 'thing1.php';
include 'thing2.php';
use class ::foo;
use namespace ::foo as another;
foo::blah(); // static method
another::blah(); // namespace function
?>
Greg