Re: function call chaining

From: Date: Tue, 19 Jan 2010 11:31:13 +0000
Subject: Re: function call chaining
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-46800@lists.php.net to get a copy of this message
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

« previous php.internals (#46800) next »