Exponentiation operator precedence

Bill Frantz frantz at pwpconsult.com
Thu Aug 27 11:35:36 UTC 2015


On 8/27/15 at 11:51 PM, niloy.mondal84 at gmail.com (Niloy Mondal) wrote:

>x ** y ** z is easier to read/write than x.pow(y.pow(z))

As a language guru, you know which operation will be performed 
first. As Joe programmer, I don't and I would need to write it 
as x ** (y ** z).

With some operations, like +, the order doesn't matter and x + y 
+ z is not confusing.

Cheers - Bill

---------------------------------------------------------------------------
Bill Frantz        |"We used to quip that "password" is the most common
408-356-8506       | password. Now it's 'password1.' Who said 
users haven't
www.pwpconsult.com | learned anything about security?" -- Bruce Schneier



More information about the es-discuss mailing list