Expressions
Structures
A structure literal consists of the structure path followed by the body. The trailing list separator is optional.
If the body is on the same line, it will be terminated by a line break instead of a block close.
Nested structure or block fields do not terminate in a list separator.
A nested structure can be on the same line only if it is the last field in the structure.
If the expression is omitted, the field will consume the variable with the same name in its scope.
Fields
The field of a structure is accessed with a dot.
Structure fields can be mutated.
Last updated