|
|
|
|
|
by rocqua
447 days ago
|
|
The solution is to encode mutability. So that you can say: Const list<cat> is a subtype of Const list<animal>. But that does get complicated because. The difference between a mutable container of immutable elements and an immutable container of mutable elements is hard to get your head around, and verbose to capture in syntad. |
|