Why isn't mutable a subtype of immutable, or vice versa?
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
Why isn't mutable a subtype of immutable, or vice versa?
Unofficial Hacker News client; not affiliated with Y Combinator.
raincole · · focus · HN ↗
In C# ReadOnlyCollection<T> and ImmutableArray<T> are two completely different things for this exact reason.