3 ms·
tldw; Elixir doesn't have a dedicated Boolean type or nullability in Elixir. The atoms :true, :false and :nil are used instead. What appear to be special langu
by AlchemistCamp 6y ago
tldw; Elixir doesn't have a dedicated Boolean type or nullability in Elixir. The atoms :true, :false and :nil are used instead.
What appear to be special language features, "true", "false" and "nil" are just syntactic sugar for those atoms.
Both :nil and :false are falsey but everything else is truthy.