« Return to Thread: node type in documentation or API?

node type in documentation or API?

by Michael Truog :: Rate this Message:

Reply to Author | View in Thread

The documentation is a little ambiguous when it mentions the node type
since it uses "node()" instead of "atom()", and this may be on purpose.
If this is on purpose it would be really nice to have a function
"erlang:is_node(Node)" for guard tests.  Otherwise, if I put
"erlang:is_atom(Node)" in the guard tests, I am making the assumption
that node types are always atoms.  I don't know if that is always
suppose to be the case since the documentation uses a separate type.

Thanks,
Michael Truog


________________________________________________________________
erlang-bugs mailing list. See http://www.erlang.org/faq.html
erlang-bugs (at) erlang.org

 « Return to Thread: node type in documentation or API?