Language Constructs¶
va.foo = 5 + va.bar
Annotation expression. Bind variable
va.footo the result of evaluating5 + va.bar.if (p) a else b
The value of the conditional is the value of
aorbdepending onp. Ifpis missing, the value of the conditional is missing.if (5 % 2 == 0) 5 else 7 7if (5 > NA: Int) 5 else 7 NA: Intlet v1 = e1 and v2 = e2 and … and vn = en in b
Bind variables
v1throughvnto result of evaluating theei. The value of the let is the value ofb.v1is visible ine2throughen, etc.let v1 = 5 and v2 = 7 and v3 = 2 in v1 * v2 * v3 70