3 ms·
Java generics are being upgraded. Declaration site variance is coming: http://openjdk.java.net/jeps/300 http://openjdk.java.net/jeps/300 And they're also addi
by mike_hearn 10y ago
Java generics are being upgraded. Declaration site variance is coming:
http://openjdk.java.net/jeps/300 http://openjdk.java.net/jeps/300
And they're also adding type specialisation and reified generics as part of the value types work, somewhat similar to what's available in C++ (but a bit less crazy).
- bad_user 10y agoDeclaration site variance is good, except that for Java I have doubts because it's being added in addition to what it currently has. Specialization for value types != reification and from what I understood from their proposal they are not introducing reification, for one because they still have backwards compatibility concerns, but also because they don't want to screw other languages. I hope those plans haven't changed.
- mike_hearn 10y agoFoo<any T> reifies T. Foo<T> does not.