Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70335 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93387 invoked from network); 24 Nov 2013 00:31:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2013 00:31:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.42 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.219.42 mail-oa0-f42.google.com Received: from [209.85.219.42] ([209.85.219.42:45542] helo=mail-oa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/60-25904-0D841925 for ; Sat, 23 Nov 2013 19:31:13 -0500 Received: by mail-oa0-f42.google.com with SMTP id i4so2977646oah.29 for ; Sat, 23 Nov 2013 16:31:10 -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=2NuiOOjCfyzOQedG53Tcn9Qs7MM2rGaIhLMMe+duDPs=; b=R1uWYy2iqYsshTQ4LEj8fDV2jiteimgRi8mPMAz5IxPTOWJLTY/DmrodxhOiBpK/lU uNVkwrvVUeeWkda6CaYfaJMEU16Kdp7w0yQfRyHVuGKixZVYmJXxPJtvYlSvXuIE4KhK iLJihv64bRwmWiA4p5XzrnWvk0L2jHGCeD+g9b6IwjnZYIp2ufCIeV2UrlZCU/80xP/K LeJnevFMtIrq3dKi+PEZ38EYyh7rMuXrlxdUf2LJny2W9HMpPW8kBys5BbYcAPXIZpxE UqRVOGH4YREGIAe0f5LpxYjtG8KyPjUSgRmaohFN2FJiO4/K3EWVLcMrvBqNmHOvk60X xfEA== MIME-Version: 1.0 X-Received: by 10.182.42.105 with SMTP id n9mr13634712obl.33.1385253069957; Sat, 23 Nov 2013 16:31:09 -0800 (PST) Received: by 10.182.221.170 with HTTP; Sat, 23 Nov 2013 16:31:09 -0800 (PST) In-Reply-To: References: Date: Sat, 23 Nov 2013 16:31:09 -0800 Message-ID: To: Derick Rethans Cc: Tjerk Meesters , PHP Internals Content-Type: multipart/alternative; boundary=14dae939981f28b1b204ebe15d3f Subject: Re: [PHP-DEV] rfc: pow-operator From: kris.craig@gmail.com (Kris Craig) --14dae939981f28b1b204ebe15d3f Content-Type: text/plain; charset=ISO-8859-1 We should be following standard Order of Operations here. As such, the option of no associativity should be included. Furthermore, there needs to be a voting option regarding how to deal with even exponents of negative bases; i.e. treat "-3 ^ 2" as "-3 ^ 2 == 9" or as "-(3 ^ 2) == -9". Without those options, my vote would be a firm No. --Kris On Sat, Nov 23, 2013 at 9:43 AM, Derick Rethans wrote: > On Sat, 23 Nov 2013, Tjerk Meesters wrote: > > > Hi guys, > > > > I'm done drafting the RFC for the exponential operator: > > https://wiki.php.net/rfc/pow-operator > > > > Since this is a language feature, voting will only start in two weeks > from > > now. > > Something that I missed in there, are you thinking of adding: > > **= > > in there too, just like we have: > > $a += 5; > > cheers, > Derick > > -- > http://derickrethans.nl | http://xdebug.org > Like Xdebug? Consider a donation: http://xdebug.org/donate.php > twitter: @derickr and @xdebug > Posted with an email client that doesn't mangle email: alpine > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --14dae939981f28b1b204ebe15d3f--