On Sun, Jan 31, 2021 at 5:24 PM Amnon <amno...@gmail.com> wrote: > https://play.golang.org/p/jnRn4Bv98xS > > See the example on the Go Playground. > > Jan, someone can explain to me why it will no longer compile?
That's not an example of what I wrote: "Changing it to an unnamed one will cause the program to no longer compile." Your example is "making the return variable unnamed and declaring a new, different variable of the same name in the same scope". -- 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/CAA40n-WsGpjZtOtuwdT-JsbQi133G_okEsQk%2ByxSQ7rcTJ3ozw%40mail.gmail.com.