• Rikudou_SageA
    link
    13 months ago

    Depends on your language. In PHP nulls are completely sane (weird, but true), same in Typescript etc., while in Java, C#, C++ and similar it’s extremely stupid, because any reference type (pointer in C++'s case) can be null and it’s hell to work with.

    Generally, newer languages (or old languages where the type system itself is new-ish, like PHP and js/ts) handle null sanely.