|
|
|
|
|
by leshow
2473 days ago
|
|
You've got a kind of made up definition of 'proper'. Java has generics, they don't have the best implementation of it I've seen, but I wouldn't call it 'improper'. It's just not a word that has any specific meaning in this context. I seem to remember an article being written a while ago that found Java's type system, with the addition of generics, was unsound. Maybe that's what you're trying to say. |
|
You can do exactly the same thing in Golang. Just use interface{} everywhere and add few casts where needed. That is Java generics.