Re: [RFC] Closure::call and Function Referencing as Closures
| From: | Andrea Faulds | Date: | Tue, 05 Aug 2014 17:41:22 +0000 |
| Subject: | Re: [RFC] Closure::call and Function Referencing as Closures | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76363@lists.php.net to get a copy of this message | ||
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.
--
Andrea Faulds
http://ajf.me/