Re: Re: [vote] pow-operator

From: Date: Thu, 19 Dec 2013 18:41:03 +0000
Subject: Re: Re: [vote] pow-operator
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-70756@lists.php.net to get a copy of this message
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/

« previous php.internals (#70756) next »