A Tour of Luce
An introduction in ten chapters. Each one is built around programs you can copy into a file and run, and each ends with a pointer to the next.
- Hello, Luce: installing, a first program, a first project
- Values: bindings, numbers, text and conversions
- Collections and loops: lists, maps, sets, tuples,
forandmatch - Functions: parameters, defaults, named arguments, lambdas and closures
- Structs and enums: your own value types and their methods
- Classes: shared objects, their lifetime, and closing resources
- Absence and failure: optionals, errors and traps
- Interfaces and generics: code that works on many types
- Projects and packages: modules, dependencies and tests
- Workers, and where next: work in parallel, and what lies beyond the Tour
The Tour assumes you have programmed before, most likely in Python, and compares Luce with it where that helps.