The Incan Book (Basics)¶
This is a linear tutorial track intended for new readers.
Goals:
- learn the core language fundamentals with runnable examples
- keep pages short and sequential (next/prev)
- avoid mixing “how-to” and “reference” into the main learning flow
Chapters¶
- Hello world
- Values, variables, and types
- Functions
- Control flow
- Modules and imports — also introduces module-owned state with
static - Errors (Result/Option and
?) - Strings and formatting
- Collections and iteration
- Enums and better
match - Models vs classes
- Traits and derives
- Newtypes (stronger types)
- Unit tests
Notes¶
- Canonical install/build/run guidance lives under Tooling: Install, build, and run.
- Canonical formatting/style guidance lives in the language reference: Incan Code Style Guide.
- The generated language reference is discoverable under Language → Reference: Language reference (generated).