3 ms·
Go has generics. What it actually lacks is user-defined generics. Which shows the absurdity of the situation. The fact that it has generics demonstrates that
by Pxtl 7y ago
Go has generics. What it actually lacks is user-defined generics.
Which shows the absurdity of the situation. The fact that it has generics demonstrates that generics are a useful and important feature. And yet they think their provided generics cover every possible use-case of generics that you will reasonably need in to use in Go.
- Vendan 7y agoAnd yet, the core devs have never said they don't want generics, only they didn't want a poor implementation. Also, there's a bit of hilarity about commenting this on a blog.golang.org where the first sentence is "This article is about what it would mean to add generics to Go, and why I think we should do it." being posted by a core Go dev....