Re: Re: 5.3 Namespace resolution rules suggestions

From: Date: Fri, 16 May 2008 19:29:15 +0000
Subject: Re: Re: 5.3 Namespace resolution rules suggestions
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-37685@lists.php.net to get a copy of this message
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. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#37685) next »