Allowing inheritance with Records?
Vikram Bakshi
vab2048 at gmail.com
Thu Dec 28 14:59:10 UTC 2023
Hello,
Is the decision to not allow inheritance for records set in stone? Or will
this be opened up and explored in the future?
One of the goals of records (from Brian Goetz Devoxx talk) is to "model
data as data", and allowing inheritance would offer a powerful way of
modelling data.
Right now we have to write interfaces for fields which are shared/static
methods for shared behaviour/copying and pasting - which I do not think is
ideal.
Regards,
Vikram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20231228/f527b719/attachment.htm>
More information about the amber-dev
mailing list