Re: Re: rfc: pow-operator

From: Date: Mon, 25 Nov 2013 01:38:50 +0000
Subject: Re: Re: rfc: pow-operator
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-70368@lists.php.net to get a copy of this message
On Sun, Nov 24, 2013 at 9: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. > > Here's why I strongly oppose the non-associative option: - No other language that I know of currently takes this approach with the exponent operator - PHP already has a bad wrap for making awkward language decisions that only end up confusing or hurting the user in the long run -- and unnecessarily so (see ternary for example -- we're the only language that made that bad choice with respect to ternary's associativity and it's a shameful mess) - We have plenty of reason to follow suit with other languages (clearly the majority of them found it more useful to have a right-associative exponent operator) - Note that some of these languages actually ended up changing their exponent operator from left-associative to right-associative at one point (Tlc for example) I propose the vote only be for a right-associative exponent operator to either be included or not included in the language. That is the only sensible thing to vote on considering all the facts. - Regards Sherif -- The guy that just wants to get things done

« previous php.internals (#70368) next »