The guide

Task-oriented, read in order: install the toolchain, get a program running, then one page per part of the surface. Every fenced example is a whole program, compiled and run by ../../scripts/check-docs.sh with its // expect-exit: N as the assertion, and derived from the fixtures in tests/ — so nothing here describes a construct the taught compiler cannot compile.

pagecovers
00-getting-started.mdwhat teko is, the pinned mc, the taught compiler, a first program, the fixtures, the fixed point
10-values-and-types.mdscalars, the seven aliases, floats, str, ptr, fixed arrays and T[]
20-classes.mdclasses and structs, members, inheritance, virtual/abstract, interfaces, traits, properties, operators
30-generics.mdtype and const parameters, instantiation, inline array fields
40-delegates-and-lambdas.mddelegate types, lambdas, explicit captures, the null panic
50-control-flow.mdloop/while/for/foreach, break N, both switch spellings, the ternary
60-parameters.mddefaults, overloads, ref/out, params
70-namespaces-and-imports.mdnamespace, using, import, several files, partial
80-dependency-injection.mdthe three lifetime markers, inject, scope { }
90-memory.mdthe arena, reference counting, roots, the guards that exit 70
95-packages.mdthe manifest today, pinning teko and teko_std once published
99-what-is-not-there-yet.mdthe rule of the cut, and where the whole refusal list lives

The exhaustive side, construct by construct, is the reference; what is designed and not built is ../specs/.

Edit this page