Language tour
The tour walks through Zane one topic at a time, each page built from small programs you can run.
Read the pages in order; each page builds on the pages before it.
- Basics: a program, symbols, numbers, strings
- Functions and methods: methods and their subject,
:and!calls, overloading, lambdas - Types: structs, constructors, value semantics, operators
- Control flow:
if, loops,guardand workers, all library code - Enums, variants and
match: sum types and matching - Generics: type and number parameters, containers
- Intrinsics and concepts: the
@names, storage primitives, and the types of literals and blocks - Memory: owners, references, moves and destruction
- Effects and capabilities: what a call may change, and reaching the outside world
- Errors: abortable functions and their handlers
- Packages: imports and privacy
- Concurrency:
spawn, its safety rules, and worker pools
Each page links to the sections of the specification that state the page’s rules precisely. The guide Calling C covers calling C code from Zane.