Re:Java 8: New features in ConcurrentHashMap
by bad_user on Thursday January 19, 2017 @04:48AM
(#13434444)
Declaration 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.
Re:Java 8: New features in ConcurrentHashMap
by mike_hearn on Wednesday January 25, 2017 @04:44AM
(#13480059)
Foo<any T> reifies T. Foo<T> does not.
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).