On Wed, Jun 17, 2020 at 10:05 AM Denis Cheremisov <denis.cheremi...@gmail.com> wrote: > > I can't get why struct based constraints were banned. struct is a kind of > types in Go and a wish to only allow them having some field is valid.
I'm not sure I would say that they were banned, it's just that we haven't seen a good way to fit them into the notion of interface types as constraints. It's not clear how important this is. It's not clear how often this really comes up in practice. 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/CAOyqgcW1EOeFsL4DcysTanQvEXkcNRg7egUw1zOKC2OZHMMOxw%40mail.gmail.com.