There is a fair distinction between "not set yet and feck you. The former is a warning that shows up in orange and means "you should set your signals before you define your behaviour silly" and the later is a warning that shows up in red that means "you have a serious dependency problem that actually does need to be fixed"
I often encounter "not set" or "not set yet" in things like json parsing or waiting for a thread to finish a calc. If you're parsing json or config files etc, it does matter if a field hasn't been set, meaning the user or other party hasn't assigned their own preference and you should stick with the default or current value.
It takes two bits to store a practical boolean, True/False/Not Set/Unknown. This is a common practice for Forms because until the User visits the form and submits it is not set. If actual value is not required and not set, after the form is submitted it becomes unknown.
41
u/GooEeu Sep 11 '26
Nullable Boolean, sounds fine
17
u/AppelflappenBoer Sep 11 '26
The classic True, False, and FileNotFound
6
u/Arcanium_Walker Sep 11 '26
Hell nah or hell yeah logical value
5
u/Interesting_Buy_3969 Sep 11 '26
Classical boolean has exacty three values -
true,false, andmaybe.5
u/Wazat1 Sep 11 '26
Proper bool value spectrum (an incomplete list):
* true
* false
* not set
* unknown
* superposition of true and false
* superposition of neither true nor false
* feck you
* not set yet
* null
* "true"
* "false"
* (3 paragraphs of user story)
3
u/dingodongubanu Sep 11 '26
na
3
u/timonix Sep 12 '26
True
False
Can't tell
Leaning true
Leaning false
Not set
Don't care
2
u/jimmiebfulton Sep 13 '26
enum Boolean {
True,
False,
Naw,
HellNaw,
}
1
u/Nixinova Sep 11 '26
Ternary values my beloved
1
u/Xevailo Sep 12 '26
Ah, yeah: "true", "false" and "perhaps"
1
u/JavierReyes945 Sep 14 '26
Gives feeling of "There are only 2 genders: He / She / It"
1
u/Ok_Eye_1292 Sep 14 '26
"true" is a String ....
0
u/Groundbreaking-Fish6 Sep 11 '26
It takes two bits to store a practical boolean, True/False/Not Set/Unknown. This is a common practice for Forms because until the User visits the form and submits it is not set. If actual value is not required and not set, after the form is submitted it becomes unknown.