FAQ: Why isn’t mutable a subtype of immutable, or vice versa?
- I remember the moment when I learned about immutability.
- — Denis Defreyne Periodically, in various programming language forums, the discussion comes up of why a certain language doesn’t provide the immutable and mutable variants of some data structure as subtypes or supertypes of one another.
Unverified
- I remember the moment when I learned about immutability.
- — Denis Defreyne Periodically, in various programming language forums, the discussion comes up of why a certain language doesn’t provide the immutable and mutable variants of some data structure as subtypes or supertypes of one another.
Sources: Crumbles