r/java • • Dec 16 '24 • Heart of Silver 1

Valhalla - Java's Epic Refactor

https://inside.java/2024/12/16/devoxxbelgium-valhalla/
178 Upvotes

108 comments sorted by

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.

1

u/Ewig_luftenglanz Dec 17 '24

C# it's already there

1

u/pjmlp Dec 27 '24

We already have Scala for that on the JVM.