My question is regarding the implementation of the language:
In Erlang we have element
to access tuple elements, setelement
to change elements, append_element
to append elements to tuples, and so on…
In Elixir we have elem
, put_elem
and Tuple.append
, respectively.
Why some functions like elem
and put_elem
are part of Kernel
in Elixir, while others that seem to be at the same “level” are in proper modules (like Tuple.append
)?
For me it’s like saying elem
and put_elem
are core to the language, and that comes before being into Tuple
.