Hello, In the section "Type identity" of Go Spec we read a list of type declarations `type ( A0 = []string A1 = A0 A2 = struct{ a, b int } A3 = int A4 = func(A3, float64) *A0 A5 = func(x int, _ float64) *[]string
// Part unimportant for my point. )` and then we have list of types that are identical. Among them we can find text "[]int and []int" It is obviously true, but feel out of place. I make a humble guess that authors intended something along the lines "[]A3 and []int" Can someone look at this part of Go Spec? I feel that someone make a mistake, but at the same time humble me saying that there is any mistake in the Go Spec is something that I shouldn't do. Best regards, Kamil poniedziałek, 8 listopada 2021 o 10:59:23 UTC+1 Kamil Ziemian napisał(a): > Thank you Jan Mercl, now I start to understand this rule. > > Best > Kamil > > niedziela, 7 listopada 2021 o 19:34:41 UTC+1 Jan Mercl napisał(a): > >> On Sun, Nov 7, 2021 at 7:23 PM Kamil Ziemian <kziem...@gmail.com> wrote: >> >> > Can anyone give me explicit example when semicolon is omitted in >> accordance to the second rule and explanation where it should be? I >> probably see such situations dozens of times, I just not know that they >> would needed semicolon in some places. >> >> I think this is a simple example: https://play.golang.org/p/ZfKxTos6GjY >> >> Click "Run" to see the code is valid, then "Format" to watch one >> semicolon disappear and then "Run" again to see it's still valid code. >> > -- 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/83a97c7c-9a79-41ff-a02d-6a1812db4059n%40googlegroups.com.