You must log in or # to comment.
Ah, the ol’ tristate boolean switcheroo
I mean aside of the variable name, this is not entirely unreasonable.
Product manager: “I want a new role for users that can only do x,y,z”
Developer: “uh… yeah. About that… Give me a few days.”
Hmmm I need a datatype with three states… Should I use a named enum? No, no that’s too obvious…
And what if it’s
undefined
?root access