Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sort of a sidebar: The term "atom" doesn't seem to have the same meaning in all languages.

Atoms in Clojure are reference types, and they are mutable in a controlled way (they can be changed to refer to another immutable value).

In Erlang, an "atom" doesn't refer an immutable value, it is the immutable value. An Erlang atom by definition cannot ever be any other value.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: