I was also sad it didn't make it into 7. Before that I was sad it didn't make it into 5, and I vaguely remember being said that something like it wasn't in Java 1.3 or 1.4 (forgot the exact version, but there was talk of Java getting something like this since C# 1.0 came out or so).
Reinhold spoke of the need for reification. Java’s generics, added in 2004, are based on the notion of erasure for good technical reasons as a sound way to create a type system that supports migration compatibility. But this creates programming problems in which the erasure approach severely limits what can be expressed. Reinhold suggested that introducing some reification and eliminating the “annoying dichotomy between primitive and reference types” would be of value.
I am going to enjoy the fuck out of that.
Granted, Scala already smooths over the rough edges of primitive types, and provides a somewhat hacky workaround for erasure, but with sometimes-severe performance implications that this would make unnecessary. So I won't enjoy it as much as a Java programmer would, but I'll still be very, very grateful for it.
Yep. I find it kind of hard to believe he has been a full time java dev for ~15 years. I have only been a full time Java dev for about 3.5 years, but even as a student and hobby programmer, 1.5 was clearly a big leap forward. Generics (though I think they did a pretty poor job of implementing them, the general idea is much better than the alternatives pre 1.5), autoboxing, improved for loops (when I write code that actually requires old style loops, I feel like I've just climbed into a time machine), var args, annotations and enumerations (which were a cool way to fake functional programming in many cases) were all pretty big improvements.
When I figured out I wrote my first Java program in 1997, it kind of blew my mind when I checked the release history and saw that was Java 1.1.
Also, I was pretty young at the time and was only doing this as a hobby, so I really wasn't trying to do complex stuff. As a result, it's kind of funny to see all the things the language didn't have back then that I just didn't notice because I wasn't doing serious work.
30
u/adila01 Mar 18 '14
The best release of Java in a long time