minus-squareshape_warrior_t@programming.devtoProgrammer Humor@programming.dev•True crimelinkfedilinkEnglisharrow-up1·2 months agoI would certainly rather see this than {isAdmin: bool; isLoggedIn: bool}. With boolean | null, at least illegal states are unrepresentable… even if the legal states are represented in an… interesting way. linkfedilink
I would certainly rather see this than
{isAdmin: bool; isLoggedIn: bool}
. Withboolean | null
, at least illegal states are unrepresentable… even if the legal states are represented in an… interesting way.