The site sections are under development.

The materials may be incomplete or contain errors. The site content will be synchronized with the implementation in the next release, while the current version (0.6.0) is intended for syntax prototyping and for creating the playground.

Expressions and statements

Operators, expressions and control-flow constructs of TrustLang

In TrustLang any construct is an expression and returns a value, so it can be nested inside other expressions. Statements are separated by a semicolon ;; a group of statements is enclosed in a code block { ... }. The basic rules of blocks and expressions are described in Syntax.

Handling of emergencies and guarantees of resource release are related to the Memory model, and typing operators — to the Type system.


Creating objects and assignment

Object creation and assignment operators, destructuring

Operators

Conditions and loops

Context manager (with)

Group capture of references and automatic resource release (RAII)

Return, interrupts and error handling