• csm10495
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    Isn’t NULL a macro in C for 0? So doesn’t that mean these items are free?

    • Haus@kbin.social
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      I’d guess, in context, it’s a floating point price column that hasn’t been set, and the table designer didn’t specify the column to be NOT NULL.

      • csm10495
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I guess Rust would have solved the problem as well.

    • coloredgrayscale@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      In a way it’s still the same with more modern languages. Especially OOP, setting an object to Null is just setting the address pointer to to 0x00000000.

      Hence NullPointerException / NullReferenceException or similar, depending on the language.