On Thu, Dec 24, 2020 at 8:30 AM Martin Hanson <greencopperm...@yandex.com> wrote:
> I write this from my understanding of the "Proposal selection criteria", > which clearly states, that in order for a proposal to be accepted, it has > to "address an important issue for many people". > It does. There is absolutely zero doubt (and there hasn't even been any doubt in my mind when I was still as staunchily opposed to generics as you are now) that it's an important issue for many people - that's why it comes up in literally any conversation you have about whether or not using Go. There are many, *many* people who clearly consider this an important problem. You clearly disagree with them, but at some point, you will *have* to accept that disagreeing with people doesn't mean their opinion just doesn't exist. This is why I'm asking for real life problem examples, not theoretical ones. > No single problem will ever justify adding generics. The value of them is in adding many small conveniences. I expect to use them every single day I code in Go - most of the time because a function or type will be provided by the stdlib, where it wasn't before. For example, I expect that there will be generic stack and set implementations - I use both of them quite a lot. You mention sorting and I do *that* in basically every Go program I write and it will become slightly more convenient. I expect the heap implementation will become more convenient to a degree where I actually feel okay using it - a problem I've come across repeatedly, again. None of these are big payoffs, they are all relatively small improvements of not having to write a handful of extra lines of code. But small improvements add up. I do not believe that adding generics solves any real life issues that is > important for many people. These small examples with sorting lists etc. > clearly do not present an important issue (real life problem) for many > people. > Can you justify that statement, given how many people complain about the Go sorting API? I'm starting to wonder if you actually talk to people who are not already fully bought into Go yet. > > -- > 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/813181608794977%40iva3-77ae5995f07f.qloud-c.yandex.net > . > -- 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/CAEkBMfECd-ELy7ix19Q9MVQZxsEnbO98OV3EJD2wTcj-EfxpGA%40mail.gmail.com.