Re: [VOTE] Combined Comparison (Spaceship) Operator

From: Date: Thu, 05 Feb 2015 07:34:25 +0000
Subject: Re: [VOTE] Combined Comparison (Spaceship) Operator
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Mon, Feb 2, 2015 at 11:50 PM, Stanislav Malyshev <[email protected]> wrote:
> 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
> [email protected]

Hello,

yeah, I meant userspace operator overloading. I don't think it would
be chaotic - for instance C# allows it and it comes in handy sometimes
and is not chaotic at all.


Thread (23 messages)

« previous php.internals (#81868) next »