Re: [Pre-RFC Discussion] User Defined Operator Overloads (again)

From: Date: Mon, 16 Sep 2024 13:25:56 +0000
Subject: Re: [Pre-RFC Discussion] User Defined Operator Overloads (again)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-125565@lists.php.net to get a copy of this message
> This discussion will use my previous RFC as the starting point for conversation: > https://wiki.php.net/rfc/user_defined_operator_overloads > There has been discussion on list recently about revisiting the topic of operator overloads > after the previous effort which I proposed was declined. There are a variety of reasons, I think, > this is being discussed, both on list and off list. On behalf of all struggling PHP developers who would like to implement patterns like Value Objects, with custom equality criterias; understanding that this is going to be read by quite an amount of people, I still would like to express my, and perhaps others', emotional state: Please make it happen guys 😭🙏!!111 I also agree that == comparisons should be prioritized if only a subset of operators is to be implemented at once. The arithmetic is also useful for stuff like GMP, but the niche in PHP is smaller for that use case. Regards, Illia / someniatko

« previous php.internals (#125565) next »