Re: [RFC] Closure::call and Function Referencing as Closures

From: Date: Tue, 05 Aug 2014 15:50:27 +0000
Subject: Re: [RFC] Closure::call and Function Referencing as Closures
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-76357@lists.php.net to get a copy of this message
On 5 Aug 2014, at 16:20, Ralph Schindler <ralph@ralphschindler.com> wrote: > "->call()" would facilitate the following syntax, which I'd argue has greater > semantic meaning than the call_user_func() variant: > > $f->bar->call()->call(); At the risk of stating the obvious, can’t you just use $f->bar->__invoke()? -- Andrea Faulds http://ajf.me/

« previous php.internals (#76357) next »