Quantcast
Channel: Erlang: atoms or integers - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



Erlang: 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
Browsing latest articles
Browse All 2 View Live


Latest Images