Reference
Consultable, complete, and dry. These pages describe exact behaviour; for learning, start with the tutorials, and for tasks see the how-to guides. The Reference has seven sections.
Language
Section titled “Language”What each construct means and how its types behave.
- Syntax & grammar and Keywords — generated from the grammar and the lexer.
- Glossary — terse definitions of Bynk’s load-bearing terms.
- Type system — opaque, sum, record, and refined types.
- Generics and bounds — type parameters,
T: Eq,T: Ord,T: Key, a method’swhereclause. - Refined-type API —
.of, predicates, admission. - Operators & built-ins — operators, precedence, built-in types.
- Agents — declaration, state, zeroability, lifecycle.
- HTTP — HTTP handlers and
HttpResult. - Static assets, Embedded text, Test fixtures and Named constants.
- Testing —
suite/case,expect,property,as <tier>,stub,Val[T].
Architecture
Section titled “Architecture”What a project compiles to, and how its parts talk to each other and to code that isn’t Bynk.
- Emission — the TypeScript each construct compiles to.
- Wire format — the cross-context call format non-Bynk code can speak, generated from the emitter’s own constants and codecs.
- TypeScript client — the typed client a non-Bynk Worker calls a context through.
- HTTP client — the typed client
bynk clientgenerates for a front end. - Registry protocol — how packages are published and resolved.
Adapters
Section titled “Adapters”- Adapters — wrapping a TypeScript library behind a capability.
Tooling
Section titled “Tooling”- Tooling — the
bynkCLI, thebynk.tomlmanifest, editor support, and a page for each tool.
Diagnostics
Section titled “Diagnostics”- Diagnostic index — every
bynk.*code, generated from the compiler’s registry, each with its own page.
Specification
Section titled “Specification”- The Bynk Language Specification — the normative definition of the language, kept whole.