13 ms·
That's a rather different issue. Abominable types are annoying and mostly worthless, but there's nothing inherently wrong with code containing a type variable
by amluto 10y ago
That's a rather different issue. Abominable types are annoying and mostly worthless, but there's nothing inherently wrong with code containing a type variable that refers to the type. Java's screwy generic instantiations are types that violate constraints by merely being named.
I'm not saying that C++'s type system is great. I'm just saying that Java's problem mystifies me.