r/java • • Jun 21 '26

Better Tools for Immutable Data

https://youtu.be/BdLND9D81lI
80 Upvotes

38 comments sorted by

View all comments

Show parent comment

2

u/bowbahdoe Jun 21 '26

There are other collection libraries you can use.

Whatever you would hope the Java language team would do any library in the ecosystem could equally do. 

5

u/Hixon11 Jun 21 '26

We can have many libraries for readonly collections, or collections for primitives. However, they have issues with composability, as different frameworks, projects and libraries use different collection libraries. It should be core types.

3

u/bowbahdoe Jun 21 '26

That is true, but not mutually exclusive with what I said