Design decisions

8. Approved on 2026-11-19

Ryan answered the open proposals in one pass. In his words where he gave them, otherwise as the default he approved.

Goals (plan/00-vision.md). Added as P0: zero-UB compiler trust (G12), zero compiler fights under contest pressure (G14), low mental overhead (G16), and "it just works" (G17). Promoted to P0: the editor with partial-parse recovery (G13), pinned local libraries (G11), the general-purpose core (G8), and a fast toolchain (G10). Added as P1: clean contest escape hatches (G15). G7 now also requires every decision to be justified.

Key features (plan/18-key-features.md). Typed input generators and shrinkers, contracts and const are in (7.8 to 7.10). The REPL is deferred (7.11).

Research recommendations (research/archive/RECOMMENDATIONS.md). All four are adopted:

  • no stored borrows in structs, with the borrow rules that go with it (5.3, 5.4);
  • the compiler picks push or pull for each generator use (4.2, 4.4);
  • strict domain conversions, with a.raw[i] as the way out (2.8, 2.11);
  • unchecked: blocks, and unproven overflow trapped in local builds only (7.1, 7.2).

Leans taken. Str is [domain S]Char (1.6); Mod<P> and ModR are two types (3.10); f::<T>() gives explicit type arguments (2.13); break 'outer is the labeled break (4.6); the orphan rule is relaxed inside a single program (3.9).

Project. The command is cpl for now and files are .cp (7.12). The repository is ryanbai1412/cp-lang; work is pushed straight to main, which must stay green. The trace viewer is designed fresh (7.14). The sample library is new (7.15). Conciseness is measured two ways (7.17).