On Tuesday, 13 August 2019 09:43:05 UTC+2, Jan Mercl wrote: > > On Tue, Aug 13, 2019 at 9:24 AM Volker Dobler > <dr.volk...@gmail.com <javascript:>> wrote: > > > Yes, of course. It declares a new named type X, the underlying > > type is Y which can be some predeclared type like int, some > > other named declared type (like MyFooType) or a "type literal" > > (a term I made up) like struct{X,Y float64; T string} or > > map[string]bool or chan time.Time . > > "Type literal" is not made up, it's a well defined part of the > specification: https://golang.org/ref/spec#TypeLit ;-) > Thanks for pointing to the spec! I actually did made it up while writing but was luck to choose come up with the correct term; probably because I read it in the spec some time ago ;-)
V. -- 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/935b956d-f33e-4492-b9b9-564a89317c2e%40googlegroups.com.