Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76725 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84201 invoked from network); 20 Aug 2014 09:59:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Aug 2014 09:59:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.182 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.182 mail-qc0-f182.google.com Received: from [209.85.216.182] ([209.85.216.182:59488] helo=mail-qc0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/71-11231-79174F35 for ; Wed, 20 Aug 2014 05:59:52 -0400 Received: by mail-qc0-f182.google.com with SMTP id i8so7590686qcq.13 for ; Wed, 20 Aug 2014 02:59:49 -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:content-transfer-encoding; bh=lXZveBbKWiPyzN6fh2Y0E+aBMFzcHDhLBhzrYRZLWd8=; b=AmVZHyHm60VeBnl3uP74quRLpinnhLeK2xX0eka2aKx7Wx8WQzvDGFbVNcnfrvrA4P jU1ydI4bV8kTOm91rtHNN1eh0Orj6No9GJ0I+yld1ikD5ctvJDvqZkoW2u8DPNWilUsH Cof31N14uhAI7FqNf8rnmCsHi7iJSXyroqPwmm/rJnrS3rrYj4ksugSa0eMUP9/zzyRS Eg9oXZup4R4TAkfjWln2jETD1mxyPUAWniC8SUKBT7/QRX6CVpLsR2B7w9SnsiEaRj3F LQsjtUkRXJbTsjonlgAy0KWG1Rs8cK/BgKRekxkijh4QWElGvz/KvcAVbfIk3khvbRYW sD+A== MIME-Version: 1.0 X-Received: by 10.224.119.193 with SMTP id a1mr26671723qar.18.1408528789740; Wed, 20 Aug 2014 02:59:49 -0700 (PDT) Received: by 10.140.95.146 with HTTP; Wed, 20 Aug 2014 02:59:49 -0700 (PDT) In-Reply-To: <3DEE6234-C839-4B48-A5D3-F15558CC5DFC@ajf.me> References: <88F3B0AF-786C-43BA-AD39-3D8B77D13B2F@ajf.me> <3DEE6234-C839-4B48-A5D3-F15558CC5DFC@ajf.me> Date: Wed, 20 Aug 2014 11:59:49 +0200 Message-ID: To: Andrea Faulds Cc: Laruence , PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Integer Semantics From: pierre.php@gmail.com (Pierre Joye) On Wed, Aug 20, 2014 at 11:24 AM, Andrea Faulds wrote: > > On 20 Aug 2014, at 03:53, Laruence wrote: > >> On Wed, Aug 20, 2014 at 6:36 AM, Andrea Faulds wrote: >>> Good evening, >>> >>> I have made an RFC which would make some small changes to how integers = are handled, targeted at PHP 7: >>> >>> https://wiki.php.net/rfc/integer_semantics >> >> I'd like don't change the works behavior. make it act the similar as C = does. > > For some of these things the behaviour is explicitly undefined in C, mean= ing it=E2=80=99s dangerous for us not to handle them specially, as undefine= d behaviour seems to give compilers an unlimited license to do absolutely a= nything at all. > > The rest are =E2=80=9Cimplementation-defined=E2=80=9D. While what C does = =E2=80=9Cworks=E2=80=9D, I=E2=80=99d rather we do one thing consistently in= stead of forcing developers to deal with the kinds of platform and compiler= differences tools like PHP should be abstracting. I totally agree with Andrea here. While it made sense to map C behavior for years, for many of us, as we all came from a C backgroud. However it makes less and less sense lately, if at all. Cheers, --=20 Pierre @pierrejoye | http://www.libgd.org