Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37686 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6876 invoked from network); 16 May 2008 19:59:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2008 19:59:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:53381] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B1/6B-52669-A97ED284 for ; Fri, 16 May 2008 15:59:23 -0400 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id D949DC116EB; Fri, 16 May 2008 12:59:23 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-4-101.neb.res.rr.com [76.84.4.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 89493C116E4; Fri, 16 May 2008 12:59:23 -0700 (MST) Message-ID: <482DE7A0.9040702@chiaraquartet.net> Date: Fri, 16 May 2008 14:59:28 -0500 User-Agent: Thunderbird 2.0.0.14 (X11/20080502) MIME-Version: 1.0 To: Stanislav Malyshev CC: internals Mailing List References: <482B9F96.7050908@gmail.com> <482CE5F8.5000700@gmail.com> <4D.AE.00945.5066D284@pb1.pair.com> <482D9F66.4000802@chiaraquartet.net> <2DA61F1F6DB245F5A628540F51AAE45F@pc> <482DDA0E.5020804@chiaraquartet.net> <482DE08B.4080409@zend.com> In-Reply-To: <482DE08B.4080409@zend.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] Re: 5.3 Namespace resolution rules suggestions From: greg@chiaraquartet.net (Gregory Beaver) 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