Re:Ask HN: Do You Use Enum for Yes, No, Unset?
by IceMetalPunk on Friday June 17, 2022 @03:41PM
(#31783259)
JS/TS dev here. I tend to stick with a nullable boolean. For me, "no value" is usually pretty equivalent with "null" in general, and the data type I choose to use depends only on the non-null possibilities.
[ Parent
| on HN ]
There are no comments on this comment yet.