Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46800 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7391 invoked from network); 19 Jan 2010 11:31:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2010 11:31:18 -0000 X-Host-Fingerprint: 78.142.172.145 gate-g21.inqnet.at Received: from [78.142.172.145] ([78.142.172.145:5036] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/56-22457-408955B4 for ; Tue, 19 Jan 2010 06:31:17 -0500 Message-ID: <4F.56.22457.408955B4@pb1.pair.com> To: internals@lists.php.net Date: Tue, 19 Jan 2010 12:31:13 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091215 Shredder/3.0 MIME-Version: 1.0 References: <4B54FC87.8070106@zend.com> In-Reply-To: <4B54FC87.8070106@zend.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 78.142.172.145 Subject: Re: function call chaining From: mike@php.net (Michael Wallner) On 01/19/2010 01:27 AM, Stanislav Malyshev wrote: > Hi! > > I wrote a small patch that enables this kind of syntax in PHP: > > foo()(); I'd rather see two other things that are missing, support for dynamic object and array de-referencing like (new class)->method() and get_array()["index"]. I honestly don't see func()()()() make anything better in the world of a PHP programmer. Regards, Mike