Comment by LeonB
16 hours ago
Finally C# will have a more idiomatic way to represent this classic code example from “The Daily WTF” in 2005 —
enum Bool
{
True,
False,
FileNotFound
};
16 hours ago
Finally C# will have a more idiomatic way to represent this classic code example from “The Daily WTF” in 2005 —
enum Bool
{
True,
False,
FileNotFound
};
What about Microsoft's own "MsoTrioState"? https://learn.microsoft.com/en-us/dotnet/api/microsoft.offic...
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.
2 replies →
note CTrue, the one true true
1 reply →
More languages need to support enoms.
Usual reminder that one of the hardest problems in software engineering is still naming things ;-)
Awful as it is, I can easily imagine how it happened... Probably says more about me than the code.
You're a true Romantic: Idealist and Pragmatist in one.
Could False = FileNotFound and this is a case of AST symbol constraints?