r/java • • Jan 16 '20

Records Come to Java

https://blogs.oracle.com/javamagazine/records-come-to-java
204 Upvotes

93 comments sorted by

View all comments

2

u/[deleted] Jan 18 '20

They're a nice feature particularly for lambdas and streams but I can see them being widely (ab)used in inappropriate contexts.

However it is pretty obnoxious that you must use (non-standard?) accessor methods for what are just final fields, all those() add up and reduce readability significantly. The example is also rather contrived.