Re: Fake Closure Comparison

From: Date: Fri, 09 Jul 2021 10:08:25 +0000
Subject: Re: Fake Closure Comparison
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-115377@lists.php.net to get a copy of this message
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. Regards, -- Pierre

« previous php.internals (#115377) next »