Re: [go-nuts] Go Generics using interfaces - alternative take

2020-06-21 Thread Arnaud Delobelle
I was planning to read the updated proposal in more details before replying, but I haven't been able to find the time sadly, so I'm doing it anyway :), mostly inline. There are a couple of general points I'd like to put forward first. - What I'm trying to push towards is not my particular appr

Re: [go-nuts] Go Generics using interfaces - alternative take

2020-06-18 Thread tomjamtin
Hi Everyone, I saw the well written 16 June 2020 blog post The Next Step for Generics by Ian Lance Taylor and Robert Griesemer too. I agree, many people have said that Go needs generics, but we don’t necessarily know exactly what that means. If

Re: [go-nuts] Go Generics using interfaces - alternative take

2020-06-16 Thread Ian Lance Taylor
On Tue, Jun 16, 2020 at 1:54 PM Arnaud Delobelle wrote: > > I noticed today the blog post about the revised Generics proposal. What got > me excited is this extract at the start: > > The biggest change is that we are dropping the idea of contracts. The > difference between contracts and interfa

[go-nuts] Go Generics using interfaces - alternative take

2020-06-16 Thread Arnaud Delobelle
Hi everyone, I noticed today the blog post about the revised Generics proposal. What got me excited is this extract at the start: *The biggest change is that we are dropping the idea of contracts. The difference between contracts and interface types was confusing, so we’re eliminating that di