Do "yes" and "no" have a name together, like how "true" and "false" are called "boolean"?
For further actions, you may consider blocking this person and/or reporting abuse
Do "yes" and "no" have a name together, like how "true" and "false" are called "boolean"?
For further actions, you may consider blocking this person and/or reporting abuse
Tutort Academy -
Fahad Bin Faiz -
TechEazy Consulting -
Md. Al-Amin -
Top comments (9)
You can use whatever labels you want for Boolean: true/false, yes/no, 1/0.
If you have three values - true, false, unknown - that’s trinary or three-value logic: en.wikipedia.org/wiki/Three-valued...
For context, I'm using a language without nullable types, and I want a class that uses the values: "
YES
", "NO
", "NEITHER
".You might also need a value for "unknown", depending on your situation of course
What language?
GoLang
Also no, I'm not counting interface/pointer/etc... types as nullable.
Nil is not null, and I think that distinguishment needs to be made.
Determinators
I like this answer.
You're welcome.