For AI agents: Documentation index at /llms.txt

Skip to content

Declarations

Declarations introduce names into a Motoko program. This section covers the full set of declaration forms: variable and type bindings, functions, classes, modules, and object literals, including the rules around scope and recursion.