• lukad@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    Using a nullable Boolean to represent 3 distinct states just adds confusion and complexity to your system. In most cases I would prefer to use an enum with 3 fields which is non nullable.