On Saturday, October 1, 2016 at 3:31:00 PM UTC+8, Jan Mercl wrote: > > > > On Sat, Oct 1, 2016, 09:13 T L <tapi...@gmail.com <javascript:>> wrote: > >> In Go spec, https://golang.org/ref/spec#Type_identity, it says: >> >> Two named types <https://golang.org/ref/spec#Types> are identical if >> their type names originate in the same TypeSpec >> <https://golang.org/ref/spec#Type_declarations>. >> >> But, in my impression, in Golang, there are only two pair types are >> identical: uint8 and byte, int32 and rune. >> How to define custom identical named types? >> > > Not possible. > > -- > > -j >
If no two custom named types are identical, why spec says that? -- 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.