You are viewing a single thread.
View all comments
2 points
*

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

permalink
report
reply
2 points

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.

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply
2 points

I guess Rust would have solved the problem as well.

permalink
report
parent
reply
2 points

Null is zero in german - so this must be free, it’s a german shop

permalink
report
parent
reply
1 point
*
Deleted by creator
permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 6.1K

    Monthly active users

  • 988

    Posts

  • 38K

    Comments