On Fri, Jul 9, 2021 at 12:08 PM Pierre <pierre-...@processus.org> wrote:
> Le 09/07/2021 à 10:45, Joe Watkins a écrit : > > Morning internals, > > > > While discussing some of the details of the first class callable RFC, it > > became apparent that fake closures (created by Closure::fromCallable) are > > not currently comparable in a useful way. > > > > Although this is not directly related to the first class callable > feature, > > it's likely that the proliferation of this kind of code will follow, so > now > > seems like a good time to fix the problem. > > > > https://github.com/php/php-src/pull/7223 > > > > Any objections to merging that in master ? > > > > Cheers > > Joe > > I don't see where I would actually compare callables, and I'm not an > engine maintainer, but from my point of view, this patch makes sense. > I'm also not sure where this would be actually useful (though I'm okay with including it, as the functionality itself seems sensible). As Patrick Allaert suggested this, maybe he can comment on some use cases. Regards, Nikita