Re: Power function as operator

From: Date: Sat, 23 Nov 2013 08:57:56 +0000
Subject: Re: Power function as operator
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-70321@lists.php.net to get a copy of this message
Hi, On Sat, Nov 23, 2013 at 3:24 PM, Sanford Whiteman < swhitemanlistens-software@cypressintegrated.com> wrote: > > That said, the convention with the "flattened" form is almost always > > right-to-left in my experience. > > That's the problem with extrapolating from personal experience. :) > > Confining the question to web programming languages _that currently > support an operator_, and assuming 1/3 of ASP.NET sites use VB.NET > (hard to get any firm numbers on that split), I strongly question that > you will prove that VB.NET + Classic ASP + CF (just added to the > left-associative "exceptions") are not, in toto, running on more sites > than the other languages. > VB apparently chose to make *all* operators left associative (within the same precedence), so that's not much of an exception based on any kind of mathematical background ... indeed, an "exception" as you put it :) Regardless, I'm not so convinced that this should be the guiding principle of how things should work; by the time you start typing the second ** you ought to have consulted the manual already. > > -- S. > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -- Tjerk

« previous php.internals (#70321) next »