Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77222 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76900 invoked from network); 15 Sep 2014 16:24:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2014 16:24:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.176 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.176 mail-ob0-f176.google.com Received: from [209.85.214.176] ([209.85.214.176:33564] helo=mail-ob0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E9/D0-64534-3A217145 for ; Mon, 15 Sep 2014 12:24:05 -0400 Received: by mail-ob0-f176.google.com with SMTP id wo20so660697obc.35 for ; Mon, 15 Sep 2014 09:24:01 -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=wzY8HBJPBBjmyFPYlrOEAUMqsY7l9LB6JoopVOeUy9Y=; b=koDQrgwC0XZRVwlsQ7xIXSOiS0OijSH/avr9iX4kzvbY8ZrS1sKBLKFcy1KXQN9yCc 0f/O7sy6Ai6ZgLChNArBwx4+Fdp9C8hgehn3Uh0XWXNZITtIG8ovLHDAwkC+2yGEYjGR 4Q/5nPsm0N9Z3UlXjoi9d9qv49JBByNOgjsSLHQMTFXrgy0t4qsuRP0WWMFxnq9npQzg ih1Kq6+LmibrJ44khjRg9UQ6kdxst0ObyFAU/fHrR31xil6Wx2znUPhf4PoYrzRK69IV 6XWZ+RAswF+bbkm8PiZxFqeYaDpyQb/RTOqq1GPYlj8Az4RiAhliON5tJ2cy3DAUyFT2 ku7Q== MIME-Version: 1.0 X-Received: by 10.182.66.16 with SMTP id b16mr28817688obt.49.1410798241150; Mon, 15 Sep 2014 09:24:01 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.76.106.20 with HTTP; Mon, 15 Sep 2014 09:24:01 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Sep 2014 10:24:01 -0600 X-Google-Sender-Auth: Z427SN0Uk6GXVyY2yAdLalxXmno Message-ID: To: Andrea Faulds Cc: PHP Developers Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE][RFC] Integer Semantics From: levim@php.net (Levi Morrison) > This RFC has been put to a vote. It starts today (2014-09-14) and ends in= a week=E2=80=99s time (2014-09-21). > > https://wiki.php.net/rfc/integer_semantics#vote A few people have asked why I voted no; the only reason is that division by zero will return `false` and emit a warning. Integers can be converted to floating point numbers and dividing by zero in IEEE 754 is defined as INF. I would rather leave behavior undefined by voting no on this RFC than by defining it to a value which does not make sense to me. The value false will get converted to zero in any additional math, which is not the same as INF. The rest of the RFC looks very good, and would vote yes to it if division by zero was untouched or modified to use floating point division by zero.