JEP 359: Records

Jonathan Rosenne jr at qsm.co.il
Fri Oct 11 21:07:25 UTC 2019


Thanks for taking time to reply.

Best Regards,

Jonathan Rosenne


-----Original Message-----
From: Brian Goetz [mailto:brian.goetz at oracle.com] 
Sent: Friday, October 11, 2019 10:29 PM
To: Jonathan Rosenne; John Rose
Cc: amber-dev at openjdk.java.net
Subject: Re: JEP 359: Records


> 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