On Wednesday, July 5, 2017 at 4:40:57 PM UTC+8, Jan Mercl wrote: > > On Wed, Jul 5, 2017 at 10:33 AM Darren Hoo <darre...@gmail.com > <javascript:>> wrote: > > > So in https://talks.golang.org/2015/tricks.slide#5 > > > > Other examples of type literals are int and []string, > > > > is actually not correct. > > The text is completely correct. Type literal is like a type expression. To > express/describe a type you can use any type, anonymous or named. >
'u' and 'int64' are both named types. `int` is type literal `int64` is named type IIUC, `func (int)` is type literal but not named type what is the relation between `type literal` and `named type`, aren't they mutually exclusive? -- 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.