September 2013
Intermediate to advanced
548 pages
12h 25m
English
In Erlang, anything that can be evaluated to produce a value is called an expression. This means things such as catch, if, and try…catch are expressions. Things such as record declarations and module attributes cannot be evaluated, so they are not expressions.
Expression sequences are sequences of
expressions separated by commas. They are found all over the place
immediately following an -> arrow.
The value of the expression sequence E1, E2, ..., En is
defined to be the value of the last expression in the
sequence. This is computed using any bindings created
when computing the values of E1, E2, and so on.
This is equivalent to progn in LISP.
Read now
Unlock full access