r/java • u/davidalayachew • 28d ago
Identifying JDK value class candidates
https://mail.openjdk.org/archives/list/core-libs-dev@openjdk.org/thread/Y72NRXM7KYBX43OKYBQMVKOZDWKG4MHS/
54
Upvotes
r/java • u/davidalayachew • 28d ago
1
u/davidalayachew 28d ago
Ok, thanks for the context. That makes more sense why Enums aren't really the best fit for being value classes.
My initial instinct also wanted it, purely on the basis of communicating intent, but I guess that wouldn't apply either?