The Guide
One topic per chapter, each complete: where the Tour shows the common case, the Guide covers every form, rule and exception, with the reasons where they are not obvious. The chapters can be read in any order. Each one links to the matching part of the Reference, the specification, for the exact rules.
- Syntax: layout, comments, names, and the words Luce reserves
- Types and values: the built-in types, inference, equality, printing and conversions
- Text and bytes:
str, formatted strings, andbytes - Collections:
list,map,setand tuples, with every operation - Expressions: arithmetic, comparison, membership, precedence and assignment
- Control flow:
if, loops, labels,matchand its patterns,with - Functions: parameters, methods, lambdas and closures
- Structs and enums: value types in full
- Classes and memory: objects, lifetime, cycles, weak references and resources
- Optionals and errors:
T?,T!,catch,Result, traps - Interfaces and generics: interfaces, type parameters, the built-in interfaces
- Workers: running work in parallel
- Modules and packages: files, imports, manifests, dependencies and publishing
- Testing:
testblocks and how they run - The standard library: what
luce-stdoffers a Luce program - Luce and Base: Base modules, what crosses between the languages, handles
- Tools: the
lucecommand, diagnostics, traps, builds and formatting
Gotchas collects the surprises, each with a link to where it is explained.