Erlang atoms and ".." -


this output of erlang shell:

1> atom. atom 2> next_atom. next_atom 3> atom@erlang. atom@erlang 4> 'atom in single quotes'. 'atom in single quotes' 5> atom = 'atom'. atom 6> a.tom. 'a.tom' 7> a..tom. * 1: syntax error before: '..' 

when there 1 dot . within atom (line 6), no errors. however, when there .., syntax error. .. have special meaning in erlang or why error when . works fine?

dots not allowed such in atoms, dot between 2 atoms: 'foo'.'bar', compile time operator concatenates atoms 'foo.bar'.

this extension made support (still not officially supported) java-like package system. that's why it's not documented.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -