Hi how come iex accepts inputs that starts with capital letter?
example:
iex(1) Rr
iex(2) Jii
but not
rr
or jii
Hi how come iex accepts inputs that starts with capital letter?
example:
iex(1) Rr
iex(2) Jii
but not
rr
or jii
Because Rr, and words starting with a capital letter are seen as atoms…
iex(1)> i Rr
Term
Rr
Data type
Atom
Raw representation
:"Elixir.Rr"
Reference modules
Atom
Implemented protocols
IEx.Info, Inspect, List.Chars, String.Chars
while rr does not exists as value, nor as function.