1.2 Statement termination
A statement is terminated by ; or by a line break. A line break does NOT terminate a statement if at least one of the following holds:
- it is inside an unclosed
(or[; - the last token of the line is a binary operator,
,,=,=>,->,?->,~>,!>,|>,:; - the first token of the next line is
.,?.,->,?->,~>,!>,|>,??,&&,||,within,retry,else,undo,on_error.
This way chains can be wrapped by starting a line with an operator. The same rules apply inside { }.
See also
Source: docs/spec/oxl-standard.en.md