Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70347 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21714 invoked from network); 24 Nov 2013 06:58:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2013 06:58:40 -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.169 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.128.169 mail-ve0-f169.google.com Received: from [209.85.128.169] ([209.85.128.169:57060] helo=mail-ve0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/F1-10115-E93A1925 for ; Sun, 24 Nov 2013 01:58:39 -0500 Received: by mail-ve0-f169.google.com with SMTP id c14so2138934vea.28 for ; Sat, 23 Nov 2013 22:58:36 -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=FsCeGQGr5EW8kb8eyoThamQsoTU0hKlLdCu1nBNAvoo=; b=xWevA9nOVnqpv+gs/47z2RHVMZ/MZlAL6HGt3ZGQ/YRTv8pNwnmyJ9lyTWIJb1Tirn kwkb1kkxtQ7ISxXLhQq/L18DAmzTVma4gw+nkqFixkNktFGMlqaCoHKMaMYTXro7nuyH aeeJjMWlCA9pLruZs7b7yRZBwUfxTpfLjFkMF6JyWJXUA3AKI7txDnEVqOouWiOaCDN1 Y1QCLz6VkSoF3T7yluZPtcxnxDq/Kw4pG6Yrt6i0wLXFb7NAUMh0EpF9FGx0lKBcbnnp 3oUtblS7rvdoDLHFMZ/rtbo7erhBKN8u1Qdv9PjBflnF0sh/en6PTYU7e89h+La71bQG XSfw== MIME-Version: 1.0 X-Received: by 10.58.156.106 with SMTP id wd10mr20200057veb.7.1385276316124; Sat, 23 Nov 2013 22:58:36 -0800 (PST) Received: by 10.58.128.33 with HTTP; Sat, 23 Nov 2013 22:58:36 -0800 (PST) In-Reply-To: References: Date: Sun, 24 Nov 2013 14:58:36 +0800 Message-ID: To: Kris Craig Cc: Derick Rethans , PHP Internals Content-Type: multipart/alternative; boundary=047d7b5db7bebd0eca04ebe6c67a Subject: Re: [PHP-DEV] rfc: pow-operator From: tjerk.meesters@gmail.com (Tjerk Meesters) --047d7b5db7bebd0eca04ebe6c67a Content-Type: text/plain; charset=ISO-8859-1 On Sun, Nov 24, 2013 at 8:31 AM, Kris Craig wrote: > 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". > To support the latter "-3 ** 2 == 9" we would require a unary minus that has a higher precedence than the exponent operator and as such falls outside of the scope of this RFC. That said, I'm not even sure whether we can support a unary minus with the current parser. > > 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 >> >> > -- -- Tjerk --047d7b5db7bebd0eca04ebe6c67a--