Re:Is it time to stop using sentinel values for null / “NA” ...
by cratermoon on Monday June 05, 2023 @11:56AM
(#36198206)
There's a design pattern, known alternately as Null Object or Special Case, related to this. The general goal is to eliminate the need to add checks for null/NA/sentinel and simply define valid behavior for these cases. Eliminating boundary checks both simplifies the code and improves performance.
[ Parent
| on HN ]
There are no comments on this comment yet.