Re: Re: 5.3 Namespace resolution rules suggestions
| From: | Gregory Beaver | Date: | Fri, 16 May 2008 19:59:28 +0000 |
| Subject: | Re: Re: 5.3 Namespace resolution rules suggestions | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37686@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
> Hi!
>
>> $classes = ::get_declared_classes();
>> $classes = ::array_merge($classes, ::get_declared_interfaces());
>> $this->classes = ::array_flip($classes);
>> unset($this->classes['NSParser::Parser']);
>> $functions = ::get_defined_functions();
>> $this->functions = ::array_flip($functions['internal']);
>> if (@::is_file($path)) {
>> $path = ::file_get_contents($path);
>
> Do you really think that's how PHP code should look like - constant
> obsessive ::-ing? For my taste, it looks very bad.
Actually, no. The irony of your message is that the code you quote is
used to generate use statements so ::this ::is ::unnecessary.
Greg