I was fully expecting for floodgates of comments to open again but it seems we have reached a point of maturity in the generics proposal. The new proposal really makes the intent much clearer both on the exact vs underlying type match front and the syntax gives us a more familiar union intent. So in that light this proposal is a welcome change by itself.
If this would allow us then later to switch on the matched type (preferably without type assertion, along the lines of the comment in https://github.com/golang/go/issues/45346#issuecomment-812557199 ) than it would make this implementation of generics much more useful. On Friday, April 2, 2021 at 1:00:06 AM UTC+2 Ian Lance Taylor wrote: > We've just posted a potential update to the generics proposal at > https://golang.org/issue/45346. This clarifies and simplifies the > type lists that appear in interfaces, and let's us drop the "type" > keyword used to mark such lists. > > Ian > -- 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/f6cf4e9f-5d8c-44cc-92de-aaa3915f155fn%40googlegroups.com.