JEP 359: Records
Enrico Olivelli
eolivelli at gmail.com
Sat Oct 12 05:57:05 UTC 2019
Jonathan,
Did you also take a look to Valhalla project/inline classes?
I feel that 'records' play really well with inline classes, and maybe you
are more looking for the features delivered my the latter.
Hope that helps
Enrico
Il ven 11 ott 2019, 23:21 Jonathan Rosenne <jr at qsm.co.il> ha scritto:
> 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