4 ms·
> Very curious about how Go getting generics will change its position in the landscape Go cannot get generics because "conservative politics" in its community
by throw_m239339 7y ago
> Very curious about how Go getting generics will change its position in the landscape
Go cannot get generics because "conservative politics" in its community period. A lot of prominent gatekeepers are all about the status quo.
There are a few things Go could do to make it easier to work with, ease "type equivalence", introduce some covariance into the mix. Maybe unions, maybe replace multiple return types with tuples and destructuring assignement.
I don't believe a second Go will ever get generics and the courageous proposal done by Ian Lance Taylor, the hero of the language right now, won't really satisfy anybody because it's too complex yet doesn't do that much IMHO.
This is purely a political question, not a technical one. We had that debate for almost 10 years now and I dread more petty drama.
- pjmlp 7y agoThere is some work being done here, https://go-review.googlesource.com/c/go/+/187317 https://go-review.googlesource.com/c/go/+/187317 But I agree with you, as seen by the commit messages they still aren't fully there, and at the end it might just happen as with the error proposal anyway.
- BurningCycles 7y ago>A lot of prominent gatekeepers are all about the status quo. Who are these ?
- IshKebab 7y agoYou could have said the same about modules. Generics are clearly on the roadmap even if they are taking their sweet time about it.