• coloredgrayscale@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      11 months 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.

    • Haus@kbin.social
      link
      fedilink
      arrow-up
      2
      ·
      11 months 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.

    • ImpossibleRubiksCube@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      11 months ago

      It’s a macro for zero in C, but they aren’t literally the same thing. If you have a value which is zero, you have a value; if your value is null, then it means that you do not have a value; not even zero.

      They could have just as easily made it a macro for 0xFFFF.