Is there a term for representing the set of all possible values that a variable can take?
Analogy:
In mathematics, the domain of a function is a set of values, a function is defined on (a function can take as an argument).
Examples:
- A variable of type UInt16 can contain values in the range [0-65536].
- The termination state (represented by a double value) may contain a value in the range [0-100].
- Gender (represented by Enum) may contain one of {Male, Female}.
Q:
What does the term mean to describe all the possible values that a variable can (contextually) suggest?
Basically, you need a short version of the "set of values for a variable". I used the term type to describe this range, but Type often includes other bits of information (e.g. name, operations, module).
source
share