On Friday, 11 February 2022 at 16:06:50 UTC kziem...@gmail.com wrote: > > type someAnotherType[uint float64] int > Go 1.17 gives > > syntax error: unexpected float64, expecting ] > In Go1.18beta this bloody nonsense compile!!! >
Sadly, it's legal to re-use the name of an existing type as a variable name and/or a type name, even in pre-generics Go. https://go.dev/play/p/wvMyjHVPgKo Now you can also use it as a generic type name. -- 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/919942ff-e48a-45ec-a411-ebfcbab116b2n%40googlegroups.com.