logoalt Hacker News

gimatoday at 7:37 PM1 replyview on HN

"How many options fit into a boolean?" Five or two, according* to Microsoft.

> MsoTrioState is "a tri-state Boolean value". it has five possible values. only two of them are supported.

*) https://learn.microsoft.com/en-au/dotnet/api/microsoft.offic...

Sourced from here https://fedi.lynnesbian.space/@lynnesbian/115969259564305759


Replies

rf15today at 8:01 PM

Funnily enough that was also my first idea upon reading the headline.

So let's remember: some programmer, somewhere, is right now thinking about building a tri-state boolean because they think it fits their current problem perfectly fine. And they are always wrong.

show 1 reply