Comment Comment by unscaled How exactly are they better from Kotlin's data classes?Aside from the fact Java only released non-preview support for records one month ago, they: - Don't support inheritance - Can't be mutable - Don't have a copy method While Java records are nice, Kotlin data classes are strictly more capable than Java records. parent unscaled 5 years ago
Aside from the fact Java only released non-preview support for records one month ago, they:
While Java records are nice, Kotlin data classes are strictly more capable than Java records.