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.

エラー構文の移行(0.15.0)

Xu 0.15.0 では旧 or エラー構文(or (err) { } および or >>)が削除されました。これらの旧形式を使用するとパーサのハードエラーとなり、>>> (err) { }(捕捉)および >>>(伝播)への移行が案内されます(エラーの送出は >> expr)。or は予約語ではなくなり通常の識別子として使用できるようになりました(論理 OR は引き続き || です)。エディタ上では xu-lsp が非推奨の or ハンドラを >>> に置換するクイックフィックス Code Action を提供します。詳細は VS Code / Cursor LSP コードアクションを参照してください。