(I forgot in my previous message: the email subject seems to imply that := or make() was changed since 1.0. No it wasn't.)
This for later reference: new and make and initialization is very easy to parse in the faq in the spec and in the effective go document: https://golang.org/doc/faq#new_and_make I'm not sure about the tour recommendation change, if you are curious I recommend you to file an issue, to see what others with commit rights think about the change. On 6/20/19, Kevin Chadwick <m8il1i...@gmail.com> wrote: > On 6/20/19 8:30 PM, fge...@gmail.com wrote: >> I'm not sure what you are asking for, but >> the spec on initialization is quite clear: >> https://golang.org/ref/spec#The_zero_value >> >> I'm curious which detailed literature are you referring to? > > I was prompted by atleast a couple of books but also the spec. > > Indeed the spec is clearer than I realised, had I clicked through on the > link > you sent "initial values", here. > > https://golang.org/ref/spec#Allocation > > Perhaps the tour could link to that section of the spec? > > https://tour.golang.org/moretypes/13 > > "allocates a zeroed array" -> "https://golang.org/ref/spec#The_zero_value" > > -- > 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/982d264d-0e52-ad9e-775b-55172f06d29d%40gmail.com. > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2Bctqrr%2BSYd5rSg%3DF9PgG1oZeejzyNNG90xovRDuLb%2BUSnDRKQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.