feat(stdlib): format all value types and expose handle identity members
- Add read-only FunctionRef.module/name and PluginHandle.plugin/export members; PluginHandle.id stays private (ADR-0029). - Extend stdlib/format.mq.md to Formula/Code/FunctionRef/PluginHandle/ Memory/Resource/Unit, with UTF-8 byte length for Code. - Fix two-digit ordered-list body indentation so arms 10+ stay inside their branch (they were previously top-level statements). - Extend stdlib demo to Formula/Code/FunctionRef and assert all three io.写值/打印 pairs match byte-for-byte. - Add runtime member observation test, ADR-0029, spec/status/changelog/evidence. Gate: fmt, clippy -D warnings, 416 tests passed.
This commit is contained in:
1 parent
1377af1601
commit
e119727c5d
14 files changed
+334
-15
No files matched your search
+4
-3
@@ -189,9 +189,10 @@ RFC-CM CM-A07 Compat-A (ADR-0027) is pinned by:
|
||||
* `crates/cli/tests/examples_r6.rs::mqmd_stdlib_print_output_matches_builtin_print`,
|
||||
which runs the demo and asserts `io.写值` and builtin `打印` lines are
|
||||
byte-identical for a nested List/Map/None value and a Table;
|
||||
* the demo covers Unit/None/Bool? (Bool appears inside the nested list),
|
||||
Int, Float, Text, List, Map and Table. Formula/Code/FunctionRef/PluginHandle
|
||||
are explicitly not covered; `打印` is not yet routed to the stdlib.
|
||||
* the demo covers Unit/None/Bool, Int, Float, Text, List, Map, Table,
|
||||
Formula, Code and FunctionRef; PluginHandle formatting uses the same
|
||||
observation members but needs a plugin to construct a value.
|
||||
`打印` is not yet routed to the stdlib (Compat-B pending).
|
||||
|
||||
RFC-CM CM-A06 resource streams (ADR-0025) are pinned by:
|
||||
|
||||
|
||||
Reference in new issue
Block a user