3 ms·
I think there's work being done on value types in Java. Although this was the case 6+ years ago. I'm surprised they still didn't land into Java.
by knuthsat 5y ago
I think there's work being done on value types in Java. Although this was the case 6+ years ago. I'm surprised they still didn't land into Java.
- papercrane 5y agoJEP 169 is for value objects and JEP 218 is for generics over primitives. As the grandparent comment said they go hand-in-hand. My sense is they're more concerned about getting it right then getting it shipped, as both have been in the works for years.
- qsort 5y agoYeah, it doesn't look like Project Valhalla will land before the next LTS. The original separation of primitive types and reference types was necessary when Java was first released, but it's a deal with the devil. It made everything else much harder than it could have been otherwise. Even then we won't have fully reified generics, but some of the stuff they're doing with type projections is insane. I'm pretty sure it's going to be a game changer.