|
|
|
|
|
by rvirding
5068 days ago
|
|
As in Prolog ',' and ';' are separators: ',' behaves like an and, first do then and then do this (as in Prolog); while ';' is an or, do this clause or do this clause (again as in Prolog). '.' ends something, in this case a function definition. Erlang's functions clauses are not the same as Prolog's clauses which explains the difference. It is very simple really, think of sentences in English and it all becomes trivially simple.How many sentences end in a ';'?. And you almost never need to explicitly specify blocks. Here http://ferd.ca/on-erlang-s-syntax.html are some alternate ways of looking at it. |
|
(Hello, Robert! :) )