Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46804 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34812 invoked from network); 19 Jan 2010 13:25:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2010 13:25:36 -0000 X-Host-Fingerprint: 75.72.251.154 c-75-72-251-154.hsd1.mn.comcast.net Received: from [75.72.251.154] ([75.72.251.154:14050] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/01-29385-FC2B55B4 for ; Tue, 19 Jan 2010 08:25:35 -0500 Message-ID: To: internals@lists.php.net Date: Tue, 19 Jan 2010 07:25:32 -0600 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b1 Thunderbird/3.0 MIME-Version: 1.0 References: <4B54FC87.8070106@zend.com> <4F.56.22457.408955B4@pb1.pair.com> In-Reply-To: <4F.56.22457.408955B4@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 75.72.251.154 Subject: Re: function call chaining From: cpriest@warpmail.net (Clint Priest) > 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. The array de-referencing and dynamic objects are much more common use cases in PHP than call de-referencing, has anyone even needed (or wanted) to do a func()() before? I haven't. That being said, it probably should work unless there's a good reason not to allow it to work. -Clint