Atoms Mapping
Atom is a constant with name, which is also known as Symbol in other languages, such as Ruby.
Atoms in Hamler are imported from Erlang, defined as a primitive type, but have a different syntax from Erlang.
Atoms in Hamler start with a colon :
:ok
:error
:the_1st_Atom
atom("node@127.0.0.1")
Atoms in Erlang:
ok
error
the_1st_Atom
'node@127.0.0.1'
当前内容版权归 hamler-lang 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 hamler-lang .