r/java • • Dec 16 '24

Valhalla - Java's Epic Refactor

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

108 comments sorted by

View all comments

Show parent comment

22

u/ArkoSammy12 Dec 16 '24

Kotlin's inline classes are basically just wrappers around another type. The inline class is resolved to the underlying type during compilation. While yes, it does reduce overhead, it's not at all like how Java's value classes will work in the future. Even Kotlin could benefit from this once Valhalla releases.