Re: Re: function call chaining
| From: | Pierre Joye | Date: | Tue, 19 Jan 2010 11:41:05 +0000 |
| Subject: | Re: Re: function call chaining | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46801@lists.php.net to get a copy of this message | ||
On Tue, Jan 19, 2010 at 12:31 PM, Michael Wallner <mike@php.net> wrote:
> 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.
Exactly.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org