Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76315 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31577 invoked from network); 3 Aug 2014 04:38:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2014 04:38:51 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.53 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.219.53 mail-oa0-f53.google.com Received: from [209.85.219.53] ([209.85.219.53:54392] helo=mail-oa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/50-25844-9DCBDD35 for ; Sun, 03 Aug 2014 00:38:50 -0400 Received: by mail-oa0-f53.google.com with SMTP id j17so3995876oag.26 for ; Sat, 02 Aug 2014 21:39:10 -0700 (PDT) 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=Yg37ZZ4Zr/O/qI2NUhgkH1HdouinuUtMBUlkmkB8gOc=; b=yPJ+XaoxUbrO5lMd4vIHK66jc33SBSEPvH4+OnKnqj4h5N8CH9/1NwlRAdbJ9aWuva AhHTOBeK2UbbOOA/f3pOEF7bd5eAcMI7Jk+cLY9I2mnI9I8qOJaTurTXg2GpOE2e48cb zhQX1Ibw7dH044VZMkDIIp2mNDZ8/NixY9kUggUkWfaE+IbWzRJuBv8Ero60tLmm6Hlp wu1dnQsXwJedDAh85yO1Hgm961hZXfQVLH1CQKQxNJnywjgcJWoWyi/i87O7bHDqcSSs J0kZ16tHAwuq4Pe4kWaTJKOJ44RJiT3Asr3Zk7B2O2B60SVYVZzCOEwUcY21UPMlkb2M Dxcg== MIME-Version: 1.0 X-Received: by 10.60.70.106 with SMTP id l10mr21569924oeu.54.1407040750724; Sat, 02 Aug 2014 21:39:10 -0700 (PDT) Received: by 10.202.93.213 with HTTP; Sat, 2 Aug 2014 21:39:10 -0700 (PDT) In-Reply-To: References: <739E5BAE-A01D-4936-A016-8CD90CD64BA1@ajf.me> Date: Sat, 2 Aug 2014 21:39:10 -0700 Message-ID: To: Chris Wright Cc: Adam Harvey , Andrea Faulds , PHP internals Content-Type: multipart/alternative; boundary=001a1133067221ad5d04ffb23473 Subject: Re: [PHP-DEV] [VOTE][RFC] intdiv() From: kris.craig@gmail.com (Kris Craig) --001a1133067221ad5d04ffb23473 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Jul 31, 2014 at 1:53 AM, Chris Wright wrote: > On 30 July 2014 18:51, Adam Harvey wrote: > > -1 explanation: I don't think %% is clear enough, the only sensible > > syntax choice (//) is unavailable to us, and I think the utility of > > having it baked into the language as an operator is pretty minimal > > regardless (I coded a lot of Python for scientific research in a > > previous job, and I don't think I ever used //, and you'd think that's > > the place where you'd use it). > > > > +1 on the function, though =E2=80=94 quick searches on Ohloh and Github > > suggest that there are a grand total of three open source projects > > that implement a global intdiv() function. Seems safe enough. > > > > Adam > > > > This describes my voting choice exactly. I'm not against the idea of > an operator, but %% is not the right operator choice for me. I could > live with /% but it still doesn't feel quite right. I don't have a > practical implementable suggestion for an alternative, so I guess > we'll just have to live without it. > > Of course, this does not preclude us from introducing this in the > future if someone comes up with a better idea :-) > > Thanks, Chris > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Agreed. I'd very much like to see another RFC that proposes more options for creating an operator for this. The vote against %% on this RFC should not be construed-- in my opinion, at least-- as a consensus against having any kind of operator for intdiv. --Kris --001a1133067221ad5d04ffb23473--