Re: Custom object equality
| From: | Christian Schneider | Date: | Wed, 18 Oct 2023 17:04:53 +0000 |
| Subject: | Re: Custom object equality | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-121410@lists.php.net to get a copy of this message | ||
Am 18.10.2023 um 18:42 schrieb Larry Garfield <larry@garfieldtech.com>:
> So the real question is: Would anyone who voted No on operator overloading before vote Yes on
> it if it used ~=, ~>, ~+, etc. instead?
I confess that I'm not a fan of operator overloading for a language like PHP but introducing
new operators on top of making them overloadable seems a bad idea. Operators have the problem of
being hard to look up and prefixing them with ~ feels like the worst of both worlds.
Regards,
- Chris