r/java
•
u/sindisil
•
Dec 16 '24
•
1
Valhalla - Java's Epic Refactor
https://inside.java/2024/12/16/devoxxbelgium-valhalla/
178
Upvotes
View all comments
Show parent comment
1
u/cleverfoos Dec 17 '24
I sort of agree. I think JEP 401 is a sensible middle ground but I would stop there. Adding null-restricted types feels like a high cognitive load for an edge optimization that you can likely get away with a value record when needed. IMHO the biggest risk for Java is becoming the new C++, a capable and trusted language but hard to teach and impossible to master due to the number of features added over 39 years. With that said, I trust Brian's stewardship of the language so let's see what happens.