Sere reference

Deep dives for one subject at a time. Start with ../language.md for the whole language at a glance; these pages go into the details, edge cases, and the exact methods that exist.

Everything here reflects what the compiler in this repository actually accepts — if a page and the compiler disagree, the compiler is right and the page is a bug.

TopicPage
Text: literals, indexing, slicing, methods, formatting-free basicsstrings.md
Ordered collections: literals, mutation, repetition, comprehensionslists.md
Keyed collections: literals, lookup, iteration, orderingdicts.md
Integers, floats, literals, arithmetic, castsnumbers.md
Bytes and buffersbytes.md
f"..." interpolation and the format mini-languageformatting.md
Arithmetic, comparison, logical, bitwise, is, inoperators.md
if / while / for / match / with / defercontrol-flow.md
Classes, structs, methods, properties, dunders, operator overloadingclasses.md
Enums, payloads, flagsenums.md
def, parameters, defaults, varargs, lambdas, decoratorsfunctions.md
Type parameters, constraints, unions, Anygenerics.md
raise, try/except/finally, custom exceptionsexceptions.md
import, from ... import, __exports__, project libs/modules.md
Ptr / Unique / Shared, alloc, &, *, GCmemory.md
async / await, generators, yieldasync.md
Macro definitions and expansionmacros.md

Conventions used in these pages

  • Examples are complete main-based programs unless trimmed with ....
  • T is a placeholder for a concrete type.
  • "Method" means a builtin member reached with .; user-defined member functions are described in classes.md.
  • Arity errors are compile-time: the compiler knows each builtin's signature and rejects a wrong argument count or type.