Programming Language Theory: Difference between revisions

Line 142: Line 142:
** Subsumption properties can't be arbitrarily enforced (decided) when subclasses override the implementation
** Subsumption properties can't be arbitrarily enforced (decided) when subclasses override the implementation
** ''Soundness'' refers to data structuring operation support for subtyping, such as annotation of type alterations:
** ''Soundness'' refers to data structuring operation support for subtyping, such as annotation of type alterations:
*** '''Covariant''' modifications retain the original ordering
*** ''Covariant'' modifications retain the original ordering
*** '''Contravariant''' modifications invert the original ordering
*** ''Contravariant'' modifications invert the original ordering
*** '''Invariant''' modifications dissolve the subsumption relation
*** ''Invariant'' modifications dissolve the subsumption relation
* Support for ''minimal'' and ''maximal'' types (also known as Bottom and Top)
* Support for ''minimal'' and ''maximal'' types (also known as Bottom and Top)
===Conversion===
===Conversion===