Language basics

View source

The parts of Actus you use in every program, one short page each.

Read these pages in order. Each one builds on the one before it, and every example is checked with Actus 0.3.0.

  1. Variables and values: how to name a value, change it and move it.
  2. Numbers: integer types, overflow and conversions.
  3. Conditions and loops: if, for and loop.
  4. Verbs: how to write and call a verb.
  5. Structs, enums and case: your own types and how to take them apart.
  6. Ownership roles: erg, abs, ins and dat.
  7. Errors: Result and Option: values that can fail or be missing.
  8. Printing and input/output: text on the screen and lines from the keyboard.

When you have read them, continue with Tools: projects and modules, testing, the everyday commands and editor support.