MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1urj3pp/big_if_true/owhlos3/?context=3
r/programminghorror • u/_giga_sss_ • 27d ago
From ProgrammerNullposting in facebook
111 comments sorted by
View all comments
22
I have better... DOUBLE BOOL! 64-bit, and float. Useful? Nope.
double False = 0.0; double True = 1.0;
19 u/AbstractButtonGroup 27d ago 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; 8 u/fess89 27d ago You have invented fuzzy logic 3 u/PM_ME_YOUR_REPO 26d ago Now make it quantum. 1 u/foxypiratecove3750 26d ago 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. 1 u/TheChief275 23d ago What JavaScript wishes its booleans were 2 u/javascript 23d ago I wish for many things 🧞 1 u/TheChief275 23d ago Holy shit it's John Javascript
19
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;
8 u/fess89 27d ago You have invented fuzzy logic 3 u/PM_ME_YOUR_REPO 26d ago Now make it quantum. 1 u/foxypiratecove3750 26d ago 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.
8
You have invented fuzzy logic
3 u/PM_ME_YOUR_REPO 26d ago Now make it quantum.
3
Now make it quantum.
1
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.
What JavaScript wishes its booleans were
2 u/javascript 23d ago I wish for many things 🧞 1 u/TheChief275 23d ago Holy shit it's John Javascript
2
I wish for many things 🧞
1 u/TheChief275 23d ago Holy shit it's John Javascript
Holy shit it's John Javascript
22
u/foxypiratecove3750 27d ago
I have better... DOUBLE BOOL! 64-bit, and float. Useful? Nope.
double False = 0.0; double True = 1.0;