When the Operator precedence 
<https://golang.org/ref/spec#Operator_precedence> section of the language 
specification says that "Binary operators of the same precedence associate 
from left to right. For instance, x / y * z is the same as (x / y) * z", 
does this imply that the language guarantees that a*3.0/2.0 will always be 
evaluated as (a*3.0)/2.0 and never as a*(3.0/2.0), even though the constant 
expression can be computed at compile time?  Does this hold for integer 
types, too (e.g., a*3/2)?

Thanks,
— Scott

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/4f64105d-7ecb-4cf8-a18f-d045ace5e9ecn%40googlegroups.com.

Reply via email to