JEP 359: Records

Brian Goetz brian.goetz at oracle.com
Fri Oct 11 19:28:35 UTC 2019


> So will classes such as Integer and other suitable classes in the JDK be upgraded to records?

For classes that we are sure that it is our design intent, now and 
forever, to expose as transparent carriers for a fixed stable tuple of 
data, we could consider migrating them to records.  But, let me turn it 
around: why would this matter to you?  From the outside, whether Integer 
is a class or a record, doesn't really make a difference; it has the 
same set of members either way.  What benefit _to the client_ are you 
imagining records to have over equivalent classes?




More information about the amber-dev mailing list