2 ms·
Java made the same compromise with records, and likely for similar reasons. Limiting fields of such structures to only contain immutable objects ends up limitin
by aardvark179 4y ago
Java made the same compromise with records, and likely for similar reasons. Limiting fields of such structures to only contain immutable objects ends up limiting their adoption too much even though it may be the way you would like people to use them in the long term.