3 ms·
Does Elixir have a Boolean type? [video]
- AlchemistCamp 6y agotldw; 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.