Why there is no field initializer in Go? Like:

type gate struct {
    outgoing = make(chan *sendRequest)
    incoming = make(chan update, 10)
}

Doesn't that make zero value more useful? The syntax already exists for 
global variables so IMHO not much new would get introduced to the language 
syntax - I can not tell of it's pros & cons for semantic or overall, 
deeply, but seems a practical thing for making the zero value even more 
interesting.

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to