Re: function call chaining

From: Date: Tue, 19 Jan 2010 10:30:42 +0000
Subject: Re: function call chaining
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-46794@lists.php.net to get a copy of this message
On 01/19/2010 09:29 AM, Eddie Drapkin wrote:
On Tue, Jan 19, 2010 at 2:14 AM, Alexey Zakhlestin<indeyets@gmail.com> wrote:
Would be nice if something like this worked too:
    (new Class())->method();
I was just looking at some Java code and thinking, "man I wish PHP did this"
Funny, I was just thinking the opposite "man I wish PHP never allows this" :) Can of worms I say, can of worms.. --Jani

« previous php.internals (#46794) next »