【发布时间】:2012-06-09 10:21:02
【问题描述】:
这是 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: '..'
当 atom 中只有一个点 .(第 6 行)时,我没有收到任何错误。但是,当有.. 时,我得到语法错误。 .. 在 Erlang 中是否有特殊含义,或者当 . 工作正常时为什么会出错?
【问题讨论】:
标签: erlang