Answer by Adam Lindberg for Erlang: atoms or integers
They will be equally efficient. The integer representation of an atom is used when pattern matching against other terms. The atom table is only used when printing atoms or sending them over the network...
View ArticleErlang: atoms or integers
I want to pass around a message as such{up, Distance}{down, Distance}I could also do this as such{1, Distance}{-1, Distance}The key difference is one is an atom and other an integer. Reading the man...
View Article