Re: [VOTE] Combined Comparison (Spaceship) Operator
| From: | Stanislav Malyshev | Date: | Mon, 02 Feb 2015 22:50:21 +0000 |
| Subject: | Re: [VOTE] Combined Comparison (Spaceship) Operator | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81666@lists.php.net to get a copy of this message | ||
Hi!
> I personally would use spaceship operator often, but only if PHP had
> operator overloading for classes. So I hope it will pass and operator
PHP has operator overloading for classes, but just for internal ones.
See: https://wiki.php.net/rfc/operator_overloading_gmp
For userspace ones, the feeling is unlimited overloading would be a bit
too chaotic.
--
Stas Malyshev
smalyshev@gmail.com