Equality and set-membership primitive operators: eq.is and eq.in, and
SQL's = and in (eq.equals, eq.among); isNot is not(is(…)).
eq.is and eq.in are null-safe: null equals null and nothing
else, so these never give null; eq.equals and eq.among give null as SQL
does. Every equality refuses text holding a NUL (unportable) and NaN
(non-finite) in any operand or candidate before null decides, as the orders
do. Uses Effect Equal.equals (with Object.is and ±0
normalization). SQL lowering emits IS NOT DISTINCT FROM / IS on nullable
columns so JS and SQL never diverge.
Membership as SQL's in answers it: false among no candidate, null for a
null value among some, and null where nothing matches and a candidate is
null. Text holding a NUL and NaN are refused. Eq.oneOf never gives null.
SQL's in. In order: a refused operand refuses; a null list gives null; no candidate gives false,
whatever the value, null included (SQLite's x in (), and what Drizzle
writes for an empty inArray); text holding a NUL or NaN, in the value or a
candidate, refuses; a null value gives null; then true for a match, null
where none matches beside a null candidate, and false.
Equality as SQL's = answers it: null where either side is null, so a rule
over a missing value does not hold; NaN and text holding a NUL are refused.
Eq.is is the equality where null equals null.
Equality between two values of the same type; null equals only null.
The right operand is constrained by the left operand's type so literal unions
get autocomplete and typos (e.g. Eq.is(row.status, 'typo')) fail to compile.