Re: function call chaining

From: Date: Tue, 19 Jan 2010 18:07:12 +0000
Subject: Re: function call chaining
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-46820@lists.php.net to get a copy of this message
On Tue, January 19, 2010 1: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." Whereas I look at that same code and think, "man I'm glad PHP doesn't do that" :-) Seriously, I don't like to have such complexity in the syntax. KISS -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch

« previous php.internals (#46820) next »