rfc: define shared enum and nested owner observation candidate
This commit is contained in:
1 parent
a5f84eb170
commit
d041c07ad2
4 files changed
+164
No files matched your search
@@ -422,3 +422,5 @@ Current `match *value` with `value: ref<Outcome>` and `Outcome = enum { ok(own<u
|
||||
These are specified observation limits, not new verifier bugs. A shared linear struct's Copy field is readable (a count probe returns 7); a read-only contract could likewise need to inspect a linear result's success variant or owned nested data without consuming either. RFC 0039's purity candidate cannot supply missing observation semantics, and the full P6-6 gate remains open.
|
||||
|
||||
Decide the required source/AIR observation surface. Candidate directions include a shared-view variant operation yielding borrowed payloads and an explicit shared content view through `ref<own<T>>`; neither is adopted here. Any new primitive requires a registered feature, its full AIR contract, ordinary alias/loan/lifetime enforcement, deterministic behavior, format compatibility and vertical source/Quick Reference/conformance coverage. Do not enable consumption, hidden owner copies or unrestricted partial moves to make predicates expressible.
|
||||
|
||||
2026-10-09: [RFC 0040](../rfcs/0040-shared-enum-and-owner-views.md) Draft proposes selective `enum.view` edges and shared `own.view` for scalar and array owners, with explicit source `match ref place`. Single-ingress arm blocks create only the chosen edge's dependent views; no general borrow joins or variant proofs are assumed. A current-language probe confirms that a dormant 65-payload variant is legal, while its value match rejects E5101; selecting no payloads or one would avoid that limit in the candidate. Complete unknown `enum.view` spellings currently report E0004 alone, not E0006 for their borrowed parameters. Isolated `own.view` reports E0004; a used result adds E5001, retaining Q-055's dependent-error gate. This is not adoption, implementation or complete contract coverage.
|
||||
Reference in new issue
Block a user