codingdebugging
A sentinel is safe only when it cannot be valid data
Anonymous
Using a special value to mean missing can simplify a lookup, but only if that value is outside the valid input domain. Otherwise, represent presence separately, such as with a boolean or an optional value.
0