nulvariant
nulvariant is a term used in discussions of type systems to describe a discriminated union that explicitly includes a null case. It represents a data variant that can either carry a value of a given type or denote the absence of a value. The concept emphasizes that absence is a first-class variant, not merely a special value.
In a nulvariant, the type is a sum of several alternatives: Null (or None) and one or
Origins and usage: The term is used in theoretical discussions and experimental language designs to compare
Example: In a hypothetical syntax, a nulvariant of a string might be declared as type StringNul =
Relation to related concepts: Nulvariant overlaps with discriminated unions and sum types, and it can be implemented