Re: [RFC] Comparable: the revenge
| From: | Pierre Joye | Date: | Fri, 20 Feb 2015 03:45:59 +0000 |
| Subject: | Re: [RFC] Comparable: the revenge | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83259@lists.php.net to get a copy of this message | ||
On Thu, Feb 19, 2015 at 1:40 PM, Adam Harvey <aharvey@php.net> wrote:
> Hi all,
>
> Those of you with long memories will remember that I proposed a
> Comparable interface way back in the pre-5.4 days, but withdrew it
> when it became obvious that there was no consensus for it as a feature
> and that a vote was likely to fail.
>
> RFC: https://wiki.php.net/rfc/comparable
> PR: https://github.com/php/php-src/pull/1097
>
> Why reanimate it now, I hear you ask? I think that comparisons have
> only become more prominent in the language: we now have a spaceship
> operator for explicit comparisons, yet the behaviour of object
> comparisons can be obscure, to say the least, and the user has no
> control over how their objects are compared.
>
> At this stage, I intend to put this up for a vote on March 5 (vote
> ending March 12), with the obvious endgame being that this would be
> included in 7.0.
>
> Thanks,
>
Thanks you :)
I like it. It is simple and straightforward.
I agree with other that it is easily done using a simple function
(Adam's) but I do not like it much, less clear.
Cheers,
--
Pierre
@pierrejoye | http://www.libgd.org