[erlang-questions] Why should you ever use atoms?
Max Lapshin
max.lapshin@REDACTED
Sun Oct 11 23:27:54 CEST 2015
You can think about atoms as of a predefined words of your domain logic.
Each domain description has a limited amount of words that describe it, so
number of atoms is also limited by design.
In a properly designed program you should never meet dynamic creation by
list_to_atom, only if you know that it is a
string representation of already described atom.
In other words, atoms are always written by hands by some human as a part
of described functionality.
Maybe this will help you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151012/7d25d4ac/attachment.htm>
More information about the erlang-questions
mailing list