September 2013
Intermediate to advanced
548 pages
12h 25m
English
Comments in Erlang start with a percent character (%) and extend to the end of line. There are no block comments.
Note: You’ll often see double percent characters (%%) in code examples. Double percent marks are recognized in the Emacs erlang-mode and enable automatic indentation of commented lines.
| | % This is a comment |
| | my_function(Arg1, Arg2) -> |
| | case f(Arg1) of |
| | {yes, X} -> % it worked |
| | .. |
Read now
Unlock full access