On Wed, Jun 17, 2020 at 10:05 AM Denis Cheremisov
<
denis.ch...@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