Comment Comment by ianlancetaylor There is no ambiguity there. The ambiguity arises for parameterized types.type A[T] intIs that a parameterized type named A with a type parameter T, or is it a definition of an array named A whose length is T?Separately, it's nice that type parameter lists use the same syntax as non-type parameter lists. parent ianlancetaylor 5 years ago
type A[T] int
Is that a parameterized type named A with a type parameter T, or is it a definition of an array named A whose length is T?
Separately, it's nice that type parameter lists use the same syntax as non-type parameter lists.