closedtypes
Closedtypes are a concept in type theory and programming language design used to describe type expressions that contain no free type variables. A closed type is self-contained: all type variables appearing inside the expression are bound by a surrounding quantifier or by the typing context. In contrast, open types include free type variables and therefore depend on external type assignments.
Formally, a type expression is closed if it has no occurrences of type variables that are unbound.
The concept is related to the broader idea of closure in type formation. A closed type remains
In practice, many languages distinguish between concrete/closed types and generic/open types. For example, monomorphized code often