XU XUv0.8.8
中文

Docs / Language

Language snapshot — Xu 0.8.8

Functions and packagesTop-level fn, methods, @main, multi-file packages, pub visibility, slash-path declarations/imports and domain module identities.
Variables and numeric typesImmutable-by-default := bindings, mut, compound assignment; int/bool/f64/i32/u32/u8/byte; hexadecimal/binary literals and numeric separators.
Aggregate typesstring, []T, [N]T, struct, enum, map, chan, any/temp, and struct@ method sets.
Generic codeCompile-time #/@ parameters, constraints and monomorphized function/method implementations.
Control and errorsif/else, for, while, match; << return, <<< exit, >> throw, or handling/rethrow, <- break, -> continue, and colon ranges.
Ownership and resourcesMoves, shared &T and exclusive &mut T borrows, affine File/Conn resources, deterministic scope cleanup.
Concurrencyxu f(args), typed channels, buffered/unbuffered communication, close, and select. Platform runtime support is checked separately.
Toolchain and dependenciesNative AOT, WebAssembly (wasm32) emission, standalone native Setup installers, module manifests, MVS, proxies, locks/vendor, offline/frozen builds and trusted-key checksum-log verification.

Known limits and platform boundaries