[erlang-questions] Comma, semicolon. Aaaaa

Christian S <>
Sat Sep 15 18:32:08 CEST 2007


> Not exactly, it has statements terminators (the comma), clause
> terminator (used in pattern matching clauses such as functions, case and
> receive blocks) and it has function definition terminator (the period,
> used to mark the end of the last clause of a function). Oh, and it also
> has keyword terminators for some blocks (case and receive).

Think of commas and semicolons as delimiters instead of terminators. This is why
the last expression doesnt have a comma and why the last clause doesnt
have a semicolon.

The dot is a terminator though.



More information about the erlang-questions mailing list