Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40362 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95248 invoked from network); 8 Sep 2008 18:24:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2008 18:24:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=jochem@iamjochem.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jochem@iamjochem.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain iamjochem.com from 194.109.193.121 cause and error) X-PHP-List-Original-Sender: jochem@iamjochem.com X-Host-Fingerprint: 194.109.193.121 mx1.moulin.nl Linux 2.6 Received: from [194.109.193.121] ([194.109.193.121:57737] helo=mx1.moulin.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/93-13670-8ED65C84 for ; Mon, 08 Sep 2008 14:24:40 -0400 Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl (Postfix) with ESMTP id C09F8273AFB; Mon, 8 Sep 2008 20:24:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at moulin.nl Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (mx1.moulin.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aWF4sD8zCfnJ; Mon, 8 Sep 2008 20:24:31 +0200 (CEST) Received: from [10.0.13.104] (ip129-15-211-87.adsl2.static.versatel.nl [87.211.15.129]) by mx1.moulin.nl (Postfix) with ESMTP id 741F42738ED; Mon, 8 Sep 2008 20:24:31 +0200 (CEST) Message-ID: <48C56DDF.3060301@iamjochem.com> Date: Mon, 08 Sep 2008 20:24:31 +0200 User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Stanislav Malyshev CC: Elizabeth M Smith , internals@lists.php.net References: <486FA5FB.1000300@php.net> <48C55855.4080602@zend.com> <48C5624A.1040901@zend.com> <48C56743.2060706@zend.com> In-Reply-To: <48C56743.2060706@zend.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: towards a 5.3 release From: jochem@iamjochem.com (Jochem Maas) Stanislav Malyshev schreef: > Hi! > >> This doesn't work at all >> >> The closest you can do is >> > use Foo::Bar as F; >> F::myfunction; >> ?> > > That's the right way to go. If you want functions in global space, put > them there. If not, then use namespace syntax. BTW, what is so bad in > F::myfunction that it makes it absolutely useless? because it reads like a fucking static method call, truly not an absolute reason, but none the less totally not KISS. > >> which kind of defeats the purpose of having functions in namespaces at >> all, why not just use a class with static methods at this point. > > I didn't see a lot of use of having functions in namespaces from the > start, but if you could explain what your point is - i.e. why do you > want functions that are declared in namespaces and still are in the > global space - I could maybe understand the concern better. for the same reason you would want it with classes?? because you can do it with classes, no? and that seems acceptable to you, no? then functions should have the same privilege.