4 ms·
Thanks for making me curious... Cool new developments, didn't touch Java in a while! > Records are the impl of dataclasses This is ofc backwards/reverse of an
by nnq 6y ago
Thanks for making me curious... Cool new developments, didn't touch Java in a while!
> Records are the impl of dataclasses
This is ofc backwards/reverse of any sane logic that would start with value types and after invent references (eg. in this case probably would've mean introducing a new composed-primitive type)... but then again, it's Java, at least they got the strings being immutable part right from the start.
- chhum 6y agoDetailed piece on Records here: https://www.infoq.com/articles/java-14-feature-spotlight/ https://www.infoq.com/articles/java-14-feature-spotlight/