Re: [go-nuts] [generics] Do we really need explicit type lists in constraints?

2020-06-18 Thread Ian Lance Taylor
On Thu, Jun 18, 2020 at 4:00 PM Bruno Albuquerque wrote: > > It looks to me one point of contention on using interfaces instead of > contracts is the fact that now interfaces have to support type lists but only > when used as contracts. This, no matter how you slice it, looks ugly. > > Now type

Re: [go-nuts] [generics] Do we really need explicit type lists in constraints?

2020-06-18 Thread burak serdar
On Thu, Jun 18, 2020 at 4:59 PM Bruno Albuquerque wrote: > > It looks to me one point of contention on using interfaces instead of > contracts is the fact that now interfaces have to support type lists but only > when used as contracts. This, no matter how you slice it, looks ugly. I agree, it

[go-nuts] [generics] Do we really need explicit type lists in constraints?

2020-06-18 Thread Bruno Albuquerque
It looks to me one point of contention on using interfaces instead of contracts is the fact that now interfaces have to support type lists but only when used as contracts. This, no matter how you slice it, looks ugly. Now type lists are there to support built-in operations like operators in genera