Comment by t-writescode
12 hours ago
What about Microsoft's own "MsoTrioState"? https://learn.microsoft.com/en-us/dotnet/api/microsoft.offic...
enom MsoTrioState {
Toggle,
Mixed,
True,
False,
CTrue
};
12 hours ago
What about Microsoft's own "MsoTrioState"? https://learn.microsoft.com/en-us/dotnet/api/microsoft.offic...
enom MsoTrioState {
Toggle,
Mixed,
True,
False,
CTrue
};
Is it called "trio" state because 3 of the 5 states are not supported?
I also like how True is -1. Beautiful all around!
-1 means every single bit is 1, the truest possible value.
I’m having a surprisingly difficult time deciding if I strongly agree or disagree with this statement.
1 reply →
note CTrue, the one true true
CTRUE IS A FALSE PROPHET AND ITS WORSHIPPERS SHALL BURN FOR THEIR HERESY
More languages need to support enoms.
Usual reminder that one of the hardest problems in software engineering is still naming things ;-)