|
|
|
|
|
by bascule
4288 days ago
|
|
The lack of generics is definitely a problem. You can't write generic code, and end up having to write your own thunks for each type you want to use. The standard library can't expose generic facilities that work on any type. This should be evidenced by the fact that Go is the only mainstream statically typed language without parametric polymorphism. Worse, trying to bolt it on after the fact has generally lead to ugly solutions, like C++ templates or Java's generics. I expect Go will eventually follow Java's lead and bolt on generics awkwardly. |
|
Not to me. Not to the author of this article.
> I expect Go will eventually follow Java's lead and bolt on generics awkwardly.
Nope. They'll either be done right or not at all. We're not ignoring Java's mistakes.