So... record field accessors don't follow the getX() standard that many ubiquitous libraries and tools rely on (Spring and Jackson come to mind)? Nobody started using Java 11 until it was supported by those, I can't see the use of records being any different.
Lombok doesn't use the get/set (so you have to be gentle with builders and Jackson) and Scala and Kotlin don't use them on case and data classes, respectively.
Get/Set is really just an artifact at this point. Sometime troubleslme too, as those particular verbs collide in other use cases.
19
u/daniu Jan 16 '20
So... record field accessors don't follow the
getX()standard that many ubiquitous libraries and tools rely on (Spring and Jackson come to mind)? Nobody started using Java 11 until it was supported by those, I can't see the use of records being any different.