Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70737 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96185 invoked from network); 19 Dec 2013 02:04:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Dec 2013 02:04:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.175 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.128.175 mail-ve0-f175.google.com Received: from [209.85.128.175] ([209.85.128.175:46872] helo=mail-ve0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/42-14632-F1452B25 for ; Wed, 18 Dec 2013 21:04:15 -0500 Received: by mail-ve0-f175.google.com with SMTP id jx11so291947veb.6 for ; Wed, 18 Dec 2013 18:04:12 -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=jeQu6r/CbyxZGXrfgSq1ML13a8rW9p7UBgQxqRAiTZc=; b=uVJPSw7pfYxCa9dHcJrJZGuhr1Sv+lEd6kXBkACT5GuY/4ad4Q8AcSvBCfR1/Ul7xq WRmGLh493DJWwQ5yGBiGGCOyIUagXa3ZaTTRAkH3cwxC1XHYZFdgP+XHrhP0weAUarps UDyIeg9PTXCeMLMrXanOqt95tJ7P3mEG6a2sUpn4LkD3awkeaMVSytJAh4BW9itdVo1G X2G/HPFGvI+71C/KMxHN2RmiJrspi4xF6zRCAJSGsCtmCo16gvaPRI58EA5rLHbdQWNQ ibIQBmjEcq/U8zfedxXQOTPPVr++A3zBwWXWOBo6rKRTRpPmRA+uVttkb8N35yjSH/XT eQrg== MIME-Version: 1.0 X-Received: by 10.58.168.205 with SMTP id zy13mr216953veb.19.1387418652042; Wed, 18 Dec 2013 18:04:12 -0800 (PST) Received: by 10.58.128.33 with HTTP; Wed, 18 Dec 2013 18:04:11 -0800 (PST) In-Reply-To: References: Date: Thu, 19 Dec 2013 10:04:11 +0800 Message-ID: To: Kris Craig Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7b6dc224e9141204edd9936c Subject: Re: [PHP-DEV] Re: [vote] pow-operator From: tjerk.meesters@gmail.com (Tjerk Meesters) --047d7b6dc224e9141204edd9936c Content-Type: text/plain; charset=ISO-8859-1 Hi Kris, On Thu, Dec 19, 2013 at 8:35 AM, Kris Craig wrote: > >> That said, if there are other reasons for voting 'no' besides >> associativity, feel free to shoot me an email or discuss it on the list. >> > > What did it for me was the lower precedence for the unary minus. I don't > want to have another language that thinks a negative number squared is a > negative number. I understand and respect your reasoning as outlined in > the RFC, but this is a deal-breaker for me. > I've had a short discussion with Anthony about this and he convinced me that I was indeed wrong about my "unary minus" reasoning; therefore I have updated the RFC to reflect that. So: echo -3 ** 2; // 9 echo 1 - 3 ** 2; // -8 The unary minus is now at the same level as `[`, the array dereferencing operator. > > --Kris > > -- -- Tjerk --047d7b6dc224e9141204edd9936c--