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
@@ -23,6 +23,16 @@ Changes to observable behaviour require an ADR.
|
||||
| `Memory` | opaque runtime-owned addressable byte region (ADR-0022); copies share identity, offsets are region-relative |
|
||||
| `Resource` | opaque host-issued resource/stream handle (ADR-0025); not indexable, not wire-transferable, rendered as `Resource` |
|
||||
|
||||
Read-only observation members:
|
||||
|
||||
| Value | Members |
|
||||
|---|---|
|
||||
| Formula | `latex`, `display`, `unit` |
|
||||
| Code | `language`, `source`, `content_hash`, `unit` |
|
||||
| FunctionRef | `module`, `name` (ADR-0029) |
|
||||
| PluginHandle | `plugin`, `export` (ADR-0029); the numeric host id stays private |
|
||||
| Memory, Resource | no fields (opaque) |
|
||||
|
||||
There is no truthiness: `if`-like conditions accept `Bool` only. There are no
|
||||
implicit string↔number conversions; conversion builtins must be called.
|
||||
|
||||
|
||||
Reference in new issue
Block a user