Re:Ask HN: Do You Use Enum for Yes, No, Unset?
by aliswe on Friday June 17, 2022 @04:59PM
(#31784298)
In C# I would definitely use the nullable "bool?" then you can use null coalescing operator to default to either true or false: "value ?? false"
[ Parent
| on HN ]
There are no comments on this comment yet.