TIL the difference between Elixir’s “relaxed”/symbolic Boolean operators (||
, &&
) and their “strict”/word correspondents (and
, or
).
- Relaxed versions do type coercion; strict require exactly
true
or false
- Strict versions are allowed in guards
Relevant docs: