Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81586 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30995 invoked from network); 2 Feb 2015 13:49:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2015 13:49:25 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.177 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 74.125.82.177 mail-we0-f177.google.com Received: from [74.125.82.177] ([74.125.82.177:49768] helo=mail-we0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/00-30366-3608FC45 for ; Mon, 02 Feb 2015 08:49:24 -0500 Received: by mail-we0-f177.google.com with SMTP id l61so39085309wev.8 for ; Mon, 02 Feb 2015 05:49:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7Qqlep4Az98wPiGkUZKXJLi6timTKjeUQxNC03G3kg0=; b=IIPREYq62ZvjZUxC/0ex8Beh+pWUb1Sv0KVwOb/qtkUrd+m6NasfnVU2s1EPlFv79Y vuhijIOoLQiQU0L7yvEzACoPV2EcMYTAQSjmap7UT4aHNQsmtHu/+9Ns/2rAHSXXa980 YQFxVrdhpKZ4/CvgT5wPQWnJ+03QZBGD8NdVjQhNaVd1t36rk6Az5j1otVkWoSF8Vk1v 7lgknB8BcaXXcCFhBaTEylDktL/SSML8fJo2QgQLESKxcLGKjSNKSjZ4bye0zUYYmAsq NROMuuePFBVLj/cCboL5pPf522mZPyxgfnJJwppRsfWLeFemIJQYTDfP+L6EsjhRi3Nn Tgxg== MIME-Version: 1.0 X-Received: by 10.194.103.228 with SMTP id fz4mr43606327wjb.82.1422884960858; Mon, 02 Feb 2015 05:49:20 -0800 (PST) Received: by 10.27.10.138 with HTTP; Mon, 2 Feb 2015 05:49:20 -0800 (PST) In-Reply-To: References: Date: Mon, 2 Feb 2015 14:49:20 +0100 Message-ID: To: Andrea Faulds Cc: PHP Internals List Content-Type: multipart/alternative; boundary=089e0102f360a5f99f050e1b3847 Subject: Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator From: nikita.ppv@gmail.com (Nikita Popov) --089e0102f360a5f99f050e1b3847 Content-Type: text/plain; charset=UTF-8 On Mon, Feb 2, 2015 at 1:06 PM, Andrea Faulds wrote: > Hi everyone, > > Since it's been two weeks and there are no remaining issues (aside from > the lack of a language specification patch - but that can be done later), > I'm opening voting on this RFC. > > Voting starts today (2015-02-02) and ends in two weeks' time (2015-02-16). > As this adds to the PHP language (and hence affects the PHP language > specification) a 2/3 majority is required for acceptance. > > The RFC, which contains the voting widget, can be found here: > https://wiki.php.net/rfc/combined-comparison-operator > > Thanks! > I've voted -1 because I think this should be a function and not an operator. compare($a, $b) is more obvious than $a <=> $b and it's not like writing comparison functions is such a super common use case that it needs the extra brevity of an operator. A function can furthermore be used as a callback, while an operator requires a wrapping closure. Nikita --089e0102f360a5f99f050e1b3847--