Re: Re: function call chaining

From: Date: Tue, 19 Jan 2010 11:44:47 +0000
Subject: Re: Re: function call chaining
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-46802@lists.php.net to get a copy of this message
2010/1/19 Pierre Joye <pierre.php@gmail.com>: > 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 > Totally agree.

« previous php.internals (#46802) next »