News for hackers. Stuff that matters.
Re:The Logical Disaster of Null by philwelch on Thursday May 10, 2018 @12:46AM (#17036457)
There are a lot of three-valued logics that lots of programming languages implicitly follow by accident sometimes. For example:

  true || 3 ==3 || panic()
will, through short-circuiting, evaluate to “true” even though the final element doesn’t evaluate to either true or false.

(As you may observe, they also follow a weird logic where AND and OR are not commutative...)

There are no comments on this comment yet.