Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76288 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71689 invoked from network); 31 Jul 2014 08:53:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2014 08:53:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=are.you.winning@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=are.you.winning@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.181 as permitted sender) X-PHP-List-Original-Sender: are.you.winning@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:53657] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/50-02743-4F30AD35 for ; Thu, 31 Jul 2014 04:53:08 -0400 Received: by mail-wi0-f181.google.com with SMTP id bs8so3704551wib.8 for ; Thu, 31 Jul 2014 01:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=aKbglyBRhvKZ2b05us6nl+jvlbN89uArut5DwKydrC4=; b=vvCKNX9bjrC52C8VjcUB6V97q9jQMFPHuNAIn7gOccFILXWcIU8kiul3gm4tPfY7K7 XB4qYYxmLHlLWVa27A+MZ1GIKXlJqkb3EAL5nKifIJNYs0mQCbbuvABaytzw8zNR1d8o xUgd6iKZZgrweetLhkdIpZU2Sk0zBMvXawdHKaFhJAewHQxApENv8G6Zf8BOSnLA+m+Q babCtbRsQsVBVf0pxYZKMs5v6HzcPXEjzgxrXiRQsMWg6bq54W9OXABAf+VXjaKzTh+T roUGThFxvCEgTbbEpStrLH2yTrKMo2MZ4bWPqxQ7VyPFFXIuhpcEYJKxv+bIioRudmlp TRXg== MIME-Version: 1.0 X-Received: by 10.180.99.65 with SMTP id eo1mr14326023wib.12.1406796801350; Thu, 31 Jul 2014 01:53:21 -0700 (PDT) Sender: are.you.winning@gmail.com Received: by 10.180.90.241 with HTTP; Thu, 31 Jul 2014 01:53:21 -0700 (PDT) In-Reply-To: References: <739E5BAE-A01D-4936-A016-8CD90CD64BA1@ajf.me> Date: Thu, 31 Jul 2014 09:53:21 +0100 X-Google-Sender-Auth: LG_OnAhndblVtxncWZu7bJqhfnI Message-ID: To: Adam Harvey Cc: Andrea Faulds , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE][RFC] intdiv() From: cw@daverandom.com (Chris Wright) 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