Creating objects and assignment
Object creation and assignment operators, destructuring
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.
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.
Object creation and assignment operators, destructuring
Group capture of references and automatic resource release (RAII)