A comprehensive guide to storing boolean values
Name:
Anonymous
2021-06-09 7:15
Don't.
Name:
Anonymous
2021-06-09 20:13
Store eight booleans per char, or 32 per int.
Name:
Anonymous
2021-06-10 11:17
Name:
Anonymous
2021-06-11 5:47
I prefer a single boolean per word. Don't crowd your booleans or they become unhappy.
Name:
Anonymous
2021-06-11 7:43
Store booleans as ``Yes
''/``No
'' strings for improved efficiency.
Name:
Anonymous
2021-06-11 7:44
Use literals always and do NOT store those strings in any variables, that would cause interning leading to race conditions
Name:
Anonymous
2021-06-11 11:59
I use my EnterpriseBoolean class.
Name:
Anonymous
2021-06-11 14:40
// Creating the booleanFactory Class
IBooleanFactory booleanFactory = new BooleanFactory();
// Producing a "True" Boolean
IBoolean trueBoolean = booleanFactory.makeBoolean(true);
Name:
Anonymous
2021-06-11 16:10
#define true 1
#define false 0
#define _true_and_false_defined 1 // carefully typed for type safety
Name:
Anonymous
2021-06-11 20:54
>>8pls sir post the codes for IBoolean I need this thank you
Name:
Anonymous
2021-06-12 4:59
enum Boolean {
TRUE,
FALSE,
FILE_NOT_FOUND
}
Name:
Anonymous
2021-06-12 12:30
Truth is a spectrum. Use a dependent type to store a float between 0.0 and 1.0
Name:
Anonymous
2021-06-13 3:56
>>12Shouldn't it be -1.0 to 1.0 with 0 as neutral?
Name:
Anonymous
2021-06-15 13:02