OxL Reference

§4. Declarations

In this chapter

4.1 Variables and constantsThere are no mutable globals without sync.
4.2 dataA field: visibility?
4.3 Construction and constructorsLiteral. T{ f1: e1, f2, ..base }
4.4 enumA variant: without fields, with positional or with named fields.
4.5 impl and methodsInside a method self and Self are available.
4.6 InterfacesInterfaces are structural
4.7 Embedding and overridingThere is no implementation inheritance.
4.8 GenericsParameters: type parameters T, constant parameters const N
4.9 AttributesSyntax: @name or @name(arguments) before a declaration, field, parameter or rpc.

See also

Source: docs/spec/oxl-standard.en.md