Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70756 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76999 invoked from network); 19 Dec 2013 18:41:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Dec 2013 18:41:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.241 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.241 imap3-1.ox.registrar-servers.com Received: from [198.187.29.241] ([198.187.29.241:47778] helo=imap3-1.ox.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/44-42949-7CD33B25 for ; Thu, 19 Dec 2013 13:41:13 -0500 Received: from localhost (localhost [127.0.0.1]) by oxmail.registrar-servers.com (Postfix) with ESMTP id 7C68F2A0087; Thu, 19 Dec 2013 13:41:08 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap3.ox.registrar-servers.com Received: from oxmail.registrar-servers.com ([127.0.0.1]) by localhost (imap3.ox.registrar-servers.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hac5vWmaFq6D; Thu, 19 Dec 2013 13:41:08 -0500 (EST) Received: from [192.168.0.13] (unknown [94.13.99.191]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id 7BE1D2A006A; Thu, 19 Dec 2013 13:41:06 -0500 (EST) Message-ID: <52B33DBF.7000706@ajf.me> Date: Thu, 19 Dec 2013 18:41:03 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Sean Coates , Tjerk Meesters CC: PHP Internals References: <52B3362C.80108@ajf.me> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [vote] pow-operator From: ajf@ajf.me (Andrea Faulds) On 19/12/13 18:18, Sean Coates wrote: > Sorry I'm late (possibly too late?) to this, but: > > 1) if `pow()` is turning from a function into a construct, can it still be used for callbacks? I don't see a mention of that part in the RFC. > 2) if `pow()` drops the overhead of a function call, does `-3 ** 2` really gain us anything over `pow(-3, 2)`? The latter is /far/ less ambiguous IMO. > In answer to your second point: Yes. Math is much easier when you don't have to write everything in Polish notation. I don't want to do pow(add(2, div(7, 3)), 8), I want to do (2 + 7/3) ** 8. -- Andrea Faulds http://ajf.me/