§4. Declarations
In this chapter
| 4.1 Variables and constants | There are no mutable globals without sync. |
| 4.2 data | A field: visibility? |
| 4.3 Construction and constructors | Literal. T{ f1: e1, f2, ..base } |
| 4.4 enum | A variant: without fields, with positional or with named fields. |
| 4.5 impl and methods | Inside a method self and Self are available. |
| 4.6 Interfaces | Interfaces are structural |
| 4.7 Embedding and overriding | There is no implementation inheritance. |
| 4.8 Generics | Parameters: type parameters T, constant parameters const N |
| 4.9 Attributes | Syntax: @name or @name(arguments) before a declaration, field, parameter or rpc. |
See also
Source: docs/spec/oxl-standard.en.md