For context, I'm using a language without nullable types, and I want a class that uses the values: "YES", "NO", "NEITHER".
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.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.