5.1 General rules
- Almost everything is an expression: a block
{ … }returns the value of its last expression (or()),ifandmatchare expressions. - Operands and arguments are evaluated left to right. Exception:
&&,||,??,?.evaluate the right operand only when necessary. - Assignments (
=,+=, etc.) are statements and have no value. The left-hand side MUST be a mutable place: avarvariable, a field or an index through&var. - An empty block is
{}, an empty map is{:}. A{in expression position followed byexpression :starts aMapliteral.
Related diagnostics
See also
Source: docs/spec/oxl-standard.en.md