Hacker News new | ask | show | jobs
by aardvark179 1295 days 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.