3 ms·
I don't think they offer more. Deconstructing patterns and "reconstructors" (generalised "withers") are on the way. And Java features are often designed as a co
by pron 6y ago
I don't think they offer more. Deconstructing patterns and "reconstructors" (generalised "withers") are on the way. And Java features are often designed as a complete whole: some of the feature is in the language, some in the core libraries, and some, even, in the VM. In the case of records, they're treated in a special way by the runtime (e.g. in serialisation).
- valenterry 6y agoWell I said "they offer more" and not "they will always offer more". So I stand by what I said. > In the case of records, they're treated in a special way by the runtime (e.g. in serialisation). Scala will use them as underlying implementation (just like it will do with value-types, functions and so on).