Ah how many of those options fit into that boolean. Word games!
You can make them smaller using bitfields in C.
sizeof(struct {bool a:1;}) == sizeof(char);Even now, I still find myself using true/false/null on occasions, but I'm usually smart enough to replace it with an enum at that point. The only time I don't is when it's an optional parameter to a function to override some default/existing value, at which point it then makes sense to keep it as an optional bool.
For some vector logic the distinction could matter.
pavon•1h ago