Re: Custom object equality

From: Date: Wed, 25 Oct 2023 11:58:38 +0000
Subject: Re: Custom object equality
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-121462@lists.php.net to get a copy of this message
I am just going to put this out there, but I will vote against any RFC which provides access to userland to overload == and <=> until the base semantics of PHP comparisons are fixed and the necessary engine prerequisite work is done. I am working on such an RFC, as I frankly do not trust people to think stuff through and handle things like polymorphic comparisons. Also, introducing some new kind of weird operator is just... bad. Best regards, George P. Banyard

« previous php.internals (#121462) next »