News for hackers. Stuff that matters.
Re:SQL: The difference between WHERE and HAVING by wongarsu on Tuesday December 14, 2021 @09:26AM (#29551818)
You could argue any SQL value not marked as NOT NULL is an Optional<Foo>, with NULL being the None value. It's not really subverting the type system, it's just an unconventional choice.
Re:SQL: The difference between WHERE and HAVING by Pxtl on Tuesday December 14, 2021 @02:07PM (#29555907)
Yes, but I can't think of any language where, given Optional<Foo> x and y, x.equals(y) would return null instead of either true, false, or an exception if y is null.

That's what makes SQL null-values distinct - the fact that expressions that return booleans can return NULLs.