News for hackers. Stuff that matters.
Re:A History of Lua (2001) by samatman on Wednesday August 10, 2022 @10:49AM (#32412940)
I've done this on two rare occasions: round-tripping 'null' in JSON and 'NULL' in database queries.

My solution, which was perhaps overly cute, was a table canonically named No, which is callable such that No(nil), No(false), and No(No) all return true.

So I could say

   if No(value) then
When I needed to do conditional logic which excludes those reified null values, which isn't often.

There are no comments on this comment yet.