Design stories

The spec states the language’s behaviour. The stories, one per spec document, record why it behaves that way: the situation that forced each choice, the roads not taken, and the costs accepted, in the order the thinking moved. Each story gains new chapters as the design changes, so each story is the full record of how its part of the language came to be.

Story Behind
foundations.md spec/foundations.md: the bets behind captured intent, staged compilation and strictness as performance
syntax.md spec/syntax.md: why a declaration writes its name before its type, and how one shape came to cover constructors, constants and function values
lexical.md spec/lexical.md: why an identifier’s case shows whether the identifier names a type or a value, and why the bracket determines the separator
types.md spec/types.md: the value/reference model, why # marks a distinct type, and how constructors and literals reach storage
adt.md spec/adt.md: splitting enum from variant, the central match block, and how a variant can contain itself
generics.md spec/generics.md: one parameter model for types and sizes, the <>/() split, and why a second container primitive was needed
dependencies.md spec/dependencies.md: packages identified by URL, the manifest/lock split, prebuilt releases, and core as an ordinary package
memory.md spec/memory.md: memory safety with no garbage collector and no lifetime annotations: owners, references and arenas
lifetimes.md spec/lifetimes.md: lexical scope in place of a borrow checker, and the single owner comparison made at every store
effects.md spec/effects.md: inferring effects instead of annotating them, and capabilities in place of ambient I/O
concurrency.md spec/concurrency.md: implicit parallelism without async coloring, why spawn marks only a call, and worker pools for bulk work
error-handling.md spec/error-handling.md: failure as a second return path rather than a Result value
control-flow.md spec/control-flow.md: how branching and repetition left the language and became ordinary core code
functions.md spec/functions.md: methods pulled out of the type body, mutation made visible with : and !, and overloading by shape
operators.md spec/operators.md: a fixed set of overloadable operators, laws enforced through derived operators, and no implicit coercion
math.md spec/math.md: math as compiler intrinsics with a math package over them
packages.md spec/packages.md: the directory as the package, explicit $ access, and the lib/, bin/ and test/ layout
ffi.md spec/ffi.md: calling C, C calls that fold at compile time, and the rule that C code never writes Zane memory