mattinger
01/06/2023, 1:55 AM@Immutable data class Foo(values: List<String>)
in theory, i suppose one could pass a MutableList to the data class, so theoretically it’s not correct to mark this with Immutable. But in practice, we’re only ever passing immutable lists. Has anyone encountered this? (or even use the Immutable annotation)?
There is ImmutableList which is part of the compose framework, but these are internal types and not accessible.
The other question is are the optimizations from @Immutable even worth worrying about this.Ben Trengrove [G]
01/06/2023, 2:33 AMBen Trengrove [G]
01/06/2023, 2:36 AMmattinger
01/06/2023, 3:43 AM