Re: [RFC] Closure::call and Function Referencing as Closures
| From: | Pierre Joye | Date: | Tue, 05 Aug 2014 17:51:57 +0000 |
| Subject: | Re: [RFC] Closure::call and Function Referencing as Closures | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76364@lists.php.net to get a copy of this message | ||
On Aug 5, 2014 7:41 PM, "Andrea Faulds" <ajf@ajf.me> wrote:
>
>
> On 5 Aug 2014, at 18:40, Pierre Joye <pierre.php@gmail.com> wrote:
>
> > On Aug 5, 2014 6:40 PM, "Andrea Faulds" <ajf@ajf.me> wrote:
> > > Side note, but that’s because __invoke on Closure doesn’t actually
exist. It’s a method that is created by trying to access it and ceases to
exist once called. Freaky, right?
> >
> > Do you have an example where this feature could be very helpful? This
exact feature?
>
> What, __invoke existing? I have no idea, I assume it exists for
completeness.
For your RFC, given other solutions, i fail to find one.