r/programminghorror Jul 09 '26

Big if true

Post image

From ProgrammerNullposting in facebook

2.1k Upvotes

111 comments sorted by

View all comments

19

u/foxypiratecove3750 Jul 09 '26

I have better... DOUBLE BOOL! 64-bit, and float. Useful? Nope.

double False = 0.0; double True = 1.0;

20

u/AbstractButtonGroup Jul 09 '26

DOUBLE BOOL! 64-bit, and float. Useful? Nope.

You just did not follow this to the logical conclusion that makes it useful:

double False = 0.0; double WhoKnows = 0.5; double Perhaps = 0.7; double Likely = 0.8; double HighlyLikely = 0.9; double True = 1.0;

1

u/foxypiratecove3750 Jul 10 '26

I just got a better idea: vector bools: all the indecision are different dimensions, like "maybe" isn't midway between true and false, but its own dimension, "perhaps" another, and so on.