On Fri, Dec 14, 2018 at 7:45 AM 伊藤和也 <kazya.ito.dr...@gmail.com> wrote:

> Can I say the precedence of paretheses are lower than unary operators and
higher than binary operators.

As parenthesis are not operators they have no operator precedence. But see:
https://golang.org/ref/spec#Order_of_evaluation

""""
Explicit parentheses affect the evaluation by overriding the default
associativity. In the expression x + (y + z) the addition y + z is
performed before adding x.
""""

-- 

-j

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to