在灵药中,原子应该从一开始:,所以为什么所有以大写字母开头的文字都被视为原子呢?
IO.puts is_atom(Foo) # true, why????
IO.puts is_atom(foo) # error undefined function
IO.puts is_atom(:foo) # true
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
850 次 |
| 最近记录: |