Precedence of index expression and pointer dereference expression

Viewed 1056

Given a simple expression like

*a[0]

where a is declared as *[]string (a pointer to a slice of strings).

Where does the standard exactly explain the order in which the language constructs are evaluated?

I've found that none of them is actually an operator, and the only couple of mentions of the precedence keyword mentioned in the spec:

  1. https://golang.org/ref/spec#Notation
  2. https://golang.org/ref/spec#Operators

So, what part of the spec would explain the order of evaluation of the provided expression?

1 Answers
Related