3 ms·
"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 t
by gima 7mo ago
"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.office.core.msotristate https://learn.microsoft.com/en-au/dotnet/api/microsoft.offic...
Sourced from here
https://fedi.lynnesbian.space/@lynnesbian/115969259564305759 https://fedi.lynnesbian.space/@lynnesbian/115969259564305759
- rf15 7mo agoFunnily 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.
- gizmo686 7mo agoI've implemented trits a bunch of times and have never regretted it. How you get 5 possible values into a tri state Boolean is beyond me though.
- xen0 7mo agoThat is... amazing. I think my favourite part is the fact that '1' isn't even one of the supported values.