4 ms·
Where did you get the information that the Go team never wanted Generics, even the hype around having generics yet the stats shows 50% of Go developers wasn’t i
by Patrickmi 4y ago
Where did you get the information that the Go team never wanted Generics, even the hype around having generics yet the stats shows 50% of Go developers wasn’t interested in it
https://go.dev/blog/survey2022-q2-results https://go.dev/blog/survey2022-q2-results
- kaba0 4y ago50% of Go developers will never write a library, but they will definitely use one, and for that it is pretty much a must. We really shouldn’t cater to the average user, as they honestly don’t know what’s good for them.
- lanstin 4y agoI am not sure this is true. Every single go project I have seen at work has pkg/ and internal/ If anything, I wish people would have main.go be a bit longer so I can see the main bones of the application but people always like to a := app(conf) ; a.run()
- ilyt 4y ago50% of devs interested in feature is pretty high. Also generics is mostly stuff that make libraries more convenient, not average user code. It also reduces bugs where otherwise interface{} and type checking would be used.
- Patrickmi 4y agoIf you compare the amount of attention, language bashing, dedication and sweat being put in it I should expect the survey to show at least 75% adoption
- coldtea 4y ago>Where did you get the information that the Go team never wanted Generics By them acting as if they never wanting Generics, not having Generics from day zero, delaying their implementation for a decade with BS excuses, pretending they are some kind of unsurmountable problem.... They were literally pressureed into getting them in, after years of resistance, when they recognized the mess they've made
- mseepgood 4y agoOf course you can make up your own little head canon about their motives but it has nothing to do with reality.
- coldtea 4y agoThe only compatible headcanon for their thoughts on the issue is the above though. Not sure where the "reality" comes from.
- pjmlp 4y agoRob Pike explicitly stated that he really isn't into generics, https://youtu.be/RIvL2ONhFBI?t=1018 https://youtu.be/RIvL2ONhFBI?t=1018 (starts here) https://youtu.be/RIvL2ONhFBI?t=1892 https://youtu.be/RIvL2ONhFBI?t=1892 (he expresses his opinion here) We haven't made our little heads out of nowhere.
- mseepgood 4y agoI have watched this talk back then when it came out, and I just rewatched the parts you linked. Nowhere in this talk he said that he isn't into generics. He said that he is not yet satisfied with design drafts (that existed at that time), and that he would like to bring in experts. Which he did, when he asked Phil Wadler to join, which led to the current design. The talk is actually proof that he was and is open to generics. "If we can implement these and learn about it a lot of what becomes important will clarify and something will come out of it, maybe something wonderful." Again, you make up some warped interpretation in your head.
- foldr 4y agoAnd over that period, not a single person put forward a viable and fully worked-up proposal for how generics should work in Go. It's almost as if programming languages aren't developed by anonymous people complaining on the internet.
- coldtea 4y ago