Atoms
Atoms are constants where their name is their own value. Some other languages call these symbols:
iex> :hello
:hello
iex> :hello == :world
false
The booleans true
and false
are, in fact, atoms:
iex> true == :true
true
iex> is_atom(false)
true
iex> is_boolean(:false)
true