XU XUv0.16.0

Syntax freeze

Surface syntax is frozen: >>/>>>, #path, control-flow symbols, struct@ / name#. There is no user-facing Result / Ok / Err / ?.

TopicFrozenNot doing
Errors>> expr + >>> (err) {}; >>> rethrowsuser Result / two-result returns
Exits<< return, <<< exit, -> continue, <- breakreturn / break / continue / exit keywords
import#errors, #xu/ast; alias json #encoding/jsonimport "…"
Integersint = i64; i32/u32/u8/byte are distinct; no implicit widen; wrapsame-slot aliases
Stringsdouble quotes are the literalsingle-quoted strings
Low-Level & Baremetalunsafe { … } block isolation, raw pointer *raw T, asm!(…) inline assembly, volatile_read / volatile_writemanual lifetime annotation hell in application code / implicit raw dereference
Layout & Attributes@repr("C", align: N), @repr("C", packed); #[no_mangle], #[naked], #[panic_handler], #[section("…")]unpredictable automatic struct field padding & reordering
Freestanding TagHeader $freestanding or xu.xun profile: freestanding severs host OS & libc dependenciesrigid coupling to host OS runtime

any / temp are runtime boxes; # / @ / struct@ are compile-time splits. Unconstrained form is bare name# / name@, not name# any.

Migração da sintaxe de erros (0.15.0)

O Xu 0.15.0 removeu a sintaxe legada de erros com or (or (err) { } e or >>). Usar essas formas legadas agora gera um erro rígido do parser direcionando você para >>> (err) { } (tratar) e >>> (propagar), enquanto >> expr lança erros. or não é mais uma palavra-chave reservada e passa a ser um identificador normal (o OU booleano continua sendo ||). Nos editores, o xu-lsp fornece uma ação rápida (quick-fix) para substituir manipuladores or obsoletos por >>>; veja ações de código LSP no VS Code / Cursor.