Program structure; fn main; fn init; naming conventions; Keywords and Reserved Keywords; // comments; /// Doc Comments and doc tests; labelled arguments; optional arguments and forwarding; autofill / #callsite; declare fn; function aliases / #alias; deprecated fnalias; letrec; lambdas; partial application; pipelines `\ |
> and <\ |
; methods; cascades; TODO placeholder ...` |
references/declarations-and-functions.mbt.md |
Structs; qualified T::{} literals; E0084 unqualified_record; struct update; enums; mutable enum fields; extenum; custom constructors; tuple structs; aliases; opaque types; derives; Eq / Compare / Default; JSON Enum styles; Deriving Option; Container, Case, and Field arguments; local type definitions are deprecated |
references/types-structs-enums.mbt.md |
match; guard!; E0087/E0088/E0089 guard diagnostics; array, string, map, bitstring, v128le, and Json patterns; regex literal and =~; or-pattern defaults with surrounding expressions; lexscan; deprecated lexmatch |
references/pattern-matching.mbt.md |
Traits; generics; impls; explicit extend and pub extend; implicitimplas_method; supertrait dot-call migration; Builtin traits; Deriving builtin traits; operators; trait objects |
references/traits-and-generics.mbt.md |
pub; pub(all); pub(open); priv; alias visibility; pub impl; source-level using; cross-package access and re-export |
references/visibility.mbt.md |
Error types; raise; try / catch / noraise; Option; Result; deprecated !Error, bang calls, and try? |
references/errors-and-error-handling.mbt.md |
Unit; Bool; Boolean negation; !value; deprecated not(value); Ref; Option; Result; Json; Numbers and overloaded literals; strings, bytes, escapes, interpolation, and Choosing a Byte Container; arrays, maps, views; conditional spread; unresolved or ambiguous {}; immutable Type(array) / deprecated fromarray; negative view indices; removed collection aliases and IterResult; Json::emptyobject, String predicates, Int16 / UInt16 lnot |
references/data-types.mbt.md |
if; while; for; list comprehensions; Iter and `[\ |
... \ |
]; deprecated implicit array-to-Iter and loop; labelled loops and blocks; E0085/E0086 labelled-loop control; closures; defer` |
references/control-flow-and-iteration.mbt.md |
test; snapshots; inspect; blackbox and whitebox tests; doc tests; .mbt.md |
references/tests-and-checked-docs.mbt.md |
async; task groups; cancellation and cleanup; JavaScript Promise bridge; native/JS/Wasm1 runtime boundaries; extern "js", extern "wasm", extern "C"; stable FFI Types; constant enum ABI values; #export_name; exported functions; FFI ownership and callbacks |
references/async-and-ffi.md |
Attributes including #cfg, #deprecated, #alias, #asfreefn, #callsite, #doc(hidden), #internal, #labelmigration, #module, #mustimplementone, #unsafecyclefree, #exportname, #visibility, #warnings; deprecated @ warning switch and --deny-warn; derives |
references/attributes.mbt.md |
Rust, TypeScript, Go, and stale MoonBit forms; silent interpolation, defer, integer division, and indexing traps |
references/cross-language-and-stale-syntax.md |
| Skill guidance contradicts the compiler; minimal reproduction and privacy-scrubbed issue draft |
references/reporting-errors.md |