Re: [go-nuts] Update to generics proposal

2021-04-04 Thread 'Axel Wagner' via golang-nuts
On Sun, Apr 4, 2021 at 2:18 PM K. Alex Mills wrote: > This seems like a welcome change and leaves the door open for the future > inclusion of type unions. Nicely done! > > Regarding this approximation operator, I have a question about the > intended meaning of: > > ~struct{ > F int > A string

Re: [go-nuts] Update to generics proposal

2021-04-04 Thread K. Alex Mills
This seems like a welcome change and leaves the door open for the future inclusion of type unions. Nicely done! Regarding this approximation operator, I have a question about the intended meaning of: ~struct{ F int A string } Would this match the following types? type A struct{ F int A

[go-nuts] Update to generics proposal

2021-04-01 Thread Ian Lance Taylor
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 t