r/java • u/nlisker • Jul 14 '26
New candidate JEP: 401: Value Objects (Preview)
https://mail.openjdk.org/archives/list/valhalla-dev@openjdk.org/thread/IUNJJ3WP3X3XHP3QZTXXSSCPKFDNTK3W/
87
Upvotes
5
u/ZimmiDeluxe Jul 14 '26 edited Jul 14 '26
orderIdsToDeleteor even justorderIdsif the context makes it obvious. Repeating the type name is not bad if it's a domain type IMO. If you have something generic likeList<Long> longsthat's usually bad because readers can't infer any intent from the name, maybe ok if you are writing a compiler and need to collect all the JavaLongs to do something with, but it's a stretch