Manuscript Documentation
v2026.12.0

Types#

Use a type for named fields, an enum for a fixed set of cases, an interface for operations a caller needs, and generics to reuse a model across element types.

ConceptWhat you will learn
Types and nominal typesDeclare mutable fields and distinguish domain identifiers.
EnumsRepresent a fixed set of possibilities with tagged cases.
CollectionsUse mutable lists, maps, and sets with explicit deep copies.
Optional valuesRepresent absence explicitly with T? and null.
Mutation and referencesUnderstand moves, borrows, reassignment, and deep copies.
Destructuring bindingsUnpack list positions and fields.
Interfaces and implementationsSatisfy interfaces with concrete or generic methods and pass concrete values where an interface is expected.
Equality and hashingUnderstand value comparison and key eligibility.
Generics and boundsApply parameterized types and express required properties.
Type compatibility and expected typesCheck exact types, contextual constructors, and inference boundaries.
Graphs and cyclesModel graphs, parent links, and cycles with indexes and handles.