Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70367 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88540 invoked from network); 25 Nov 2013 00:38:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2013 00:38:55 -0000 Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.49 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.212.49 mail-vb0-f49.google.com Received: from [209.85.212.49] ([209.85.212.49:45994] helo=mail-vb0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/41-16489-D1C92925 for ; Sun, 24 Nov 2013 19:38:53 -0500 Received: by mail-vb0-f49.google.com with SMTP id p5so2267787vbn.36 for ; Sun, 24 Nov 2013 16:38:50 -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=/dPrUVcF0H4hIITREpa5B/Hx4kDFoeOpMzl/zA8F3t4=; b=hv+W4DK050AyDMrzECmDEgp/UcPEY7sOjXv9InYD2oqBNKLXh9x2OXjIWbAcZTLxnh SEwsP7MuSoVPdObJeAwbAsknioW/9QG38/9VXxv8ly5RmAjOaWroJHWMOR3a+/BVbwvA z83rEVM6v9MyOpdoIuZIninkXKbns/KK5x/r3flOBGy/t0oM8BXIkWIW+02igdtmtPfY x7XM9/TWt4y5klWpeIXj0P7+F82TIhZCBbwkIV8XHduGbUQmk3xVIW2ga+WmIktTgEM/ kB81gLmtfHy7T5PXheejQST4U+Jy9QRE/fjrKnSqeD5ebPwB+sxTZsZHPiCUSxaJcOqG J/Wg== MIME-Version: 1.0 X-Received: by 10.53.10.34 with SMTP id dx2mr1421117vdd.13.1385339929772; Sun, 24 Nov 2013 16:38:49 -0800 (PST) Received: by 10.58.128.33 with HTTP; Sun, 24 Nov 2013 16:38:49 -0800 (PST) In-Reply-To: References: Date: Mon, 25 Nov 2013 08:38:49 +0800 Message-ID: To: Pierre Joye Cc: Chris London , PHP Internals Content-Type: multipart/alternative; boundary=001a1134caf26848a404ebf59661 Subject: Re: [PHP-DEV] Re: rfc: pow-operator From: tjerk.meesters@gmail.com (Tjerk Meesters) --001a1134caf26848a404ebf59661 Content-Type: text/plain; charset=ISO-8859-1 Hi Pierre, On Sun, Nov 24, 2013 at 11:56 PM, Pierre Joye wrote: > On Sun, Nov 24, 2013 at 4:26 PM, Chris London wrote: > > On Sun, Nov 24, 2013 at 7:15 AM, Tjerk Meesters < > tjerk.meesters@gmail.com>wrote: > >> > >> 2. The available votes for the associativity is reduced to either right > or > >> non associative; I'd rather see it done right (pun intended) or done in > a > >> way whereby the developer must put parentheses to disambiguate. > >> > > > > I completely agree. Here's another resource that explains a little more > why > > the exponent comes before the negation: > > http://mathforum.org/library/drmath/view/55709.html > > Replying here about the general idea of having power as an operator, I > really like the optimization brought by this change. > > However I don't really like ** and all the confusions it brings > (whether other languages support it or not, from a precedence point of > view). > > Should it not be possible to do something similar than isset? Changing > pow from a function to operator? The big advantage is that any > existing code will benefit from it without code changes. > Speeding up existing code sounds like a very good idea actually :) I'll look into this. > > Cheers, > -- > Pierre > > @pierrejoye | http://www.libgd.org > -- -- Tjerk --001a1134caf26848a404ebf59661--