It would be much less troublesome if you would keep using contracts instead 
of this interface insanity.

четверг, 18 июня 2020 г., 3:18:05 UTC+3 пользователь Ian Lance Taylor 
написал:
>
> On Wed, Jun 17, 2020 at 10:05 AM Denis Cheremisov 
> <denis.c...@gmail.com <javascript:>> 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/eccb23d1-5d14-4508-b52e-eb715511bbb2o%40googlegroups.com.

Reply via email to