A Tour of Luce Base
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, Base: installing, a first program, a first project
- Values: bindings, numbers, text and arrays
- Control flow:
if, loops, ranges andmatch - Functions: parameters, defaults, named arguments, several results
- Structs and enums: your own types and their methods
- Absence and failure: optionals, errors,
tryandcatch - Memory: pointers, spans,
newandfree, allocators - Modules and packages: files, imports and dependencies
- Calling C: using C functions and C types
- Where next
The Tour assumes you have programmed before, most likely in Python, and compares Base to languages you may know where that helps. No knowledge of C is required, though it helps in Chapters 7 and 9.