News for hackers. Stuff that matters.
Re:2^3^4 - a comparison of math packages by masklinn on Monday February 06, 2012 @04:16AM (#3556758)
That's exactly the difference between binding to the right and binding to the left (aka left-associativity and right-associativity). A left-associative exponent will parse to `(a^b)^c`, a right-associative one will parse to `a^(b^c)`
Re:2^3^4 - a comparison of math packages by rplnt on Monday February 06, 2012 @04:50AM (#3556839)
What I was trying to say is that parsing exponents like that makes as much sense as parsing a+b* 2 to (a+b)* 2.
Re:2^3^4 - a comparison of math packages by sesqu on Monday February 06, 2012 @06:48AM (#3557085)
No, it makes as much sense as parsing a* b* 2 to (a* b)* 2.