Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83243 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33603 invoked from network); 19 Feb 2015 21:40:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2015 21:40:48 -0000 Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.223.169 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.223.169 mail-ie0-f169.google.com Received: from [209.85.223.169] ([209.85.223.169:43521] helo=mail-ie0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/C3-10294-F5856E45 for ; Thu, 19 Feb 2015 16:40:48 -0500 Received: by iebtr6 with SMTP id tr6so3361031ieb.10 for ; Thu, 19 Feb 2015 13:40:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=R3Byrnlgs3+nkwkYMF1D1MGxSgWudlfe4BfaCoMaVws=; b=YOed0S47tOzmbFmuz3qDVbO2NsirXuieQe4ScvIYBkaz/bWPr8VLUewEYkP/gnDBFY e6iFMx5d+i/PDnLxu9AWCfIfj/VMx++gEsait7oMbIqbERNk+VDnn+VhFm7SkR/zksJb CyGn/PIMq65u+lioDgNvPVHt7rzuFJPF8a5/M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-type; bh=R3Byrnlgs3+nkwkYMF1D1MGxSgWudlfe4BfaCoMaVws=; b=bxf4CWElyGyyBFtp9JYTIEMgAgomvYcFjMd0/DsmWMxqclnNIlLW2sMSvis6AVcaCY rwaFjSiQHPLzgSbhsDNHSSBoR0QVwOFr3E0U3hNhwOh1bjJVf3NajT7Fyj/B6GenB/am jcK1vnMjCtI1A3uRIdSL797pQDqa9QtJaW+Q2dZTdFTUslBfessK33sLgjPCCHXxUlZg MkiG6mRrytmdDJW4xsBaRb2ySUAgVhe8L8IlrnrsbXDXXwTcl6qEm5awlIxrbSYbLibO PGucUK8S57cpXzMlrtnxAG4czAJQgDdXhy1sn6l6pJD+lb+bAY+0+pizFmoGiCzTaRdx nIhA== X-Gm-Message-State: ALoCoQmwVpNU+AavJ9j+tusXUDeVpPsrZvQL5y8HDq/MgX5WD97xYIPzil6Rw75slmXgWdkUaeLb X-Received: by 10.42.195.205 with SMTP id ed13mr8629130icb.58.1424382045224; Thu, 19 Feb 2015 13:40:45 -0800 (PST) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.43.112.9 with HTTP; Thu, 19 Feb 2015 13:40:24 -0800 (PST) Date: Thu, 19 Feb 2015 13:40:24 -0800 X-Google-Sender-Auth: u7PywHyhCfgfRWM2b30krRHw87w Message-ID: To: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: [RFC] Comparable: the revenge From: aharvey@php.net (Adam Harvey) 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, Adam