The Guide
One topic per chapter, each complete on its subject. Where the Tour gives a first look, the Guide gives every form and rule you will meet, with examples, and links to the Reference for the precise wording.
The language
- Syntax and names: layout, comments, naming, scope, reserved words
- Types: numbers, text, arrays, spans, pointers, optionals, tuples, vectors, layout
- Expressions and bindings: variables, globals, operators, conversions, equality
- Control flow:
if, loops, iteration,match, labels,defer - Functions and methods: parameters, defaults, named arguments, methods, function values
- Structs, enums and unions: fields, initialisers, cases, flags, unions
- Generics and interfaces: type parameters, constraints, interfaces, the standard interfaces
- Errors: optionals, failure,
try,catch,else, error codes, traps, assertions - Memory: pointers,
newandfree, allocators, arenas, ownership, what is checked
Programs
- Modules and packages: files, every form of import, manifests, dependencies,
luc - Testing:
testblocks, test files, running them - Concurrency: threads, atomics,
sync - C: declaring C functions and types, C sources and libraries,
bind, exporting - Luce: using Base modules from Luce
- Low-level tools: inline assembly, attributes,
volatile, freestanding programs - Building and debugging: the compiler's commands, targets, the cache, traps, crash reports, debuggers
Gotchas: the things most likely to surprise you, in one list.