Skip to content

spec §16.2b.4 / D59: ok projects a producer to Result[R, RError] - #1427

Merged
ehartford merged 1 commit into
mainfrom
spec-ok-projection-d59
Sep 23, 2026
Merged

ehartford merged 1 commit into
mainfrom
spec-ok-projection-d59

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Eric's blessed wording (2026-09-23) for the ok CONST projection D51 left open (ruling §18), plus the D59 entry recording the ruling and its reasons. Docs-only: :spec-inventory-check green. PR #1426 (modeled C stage 5) implements it.

… generated error owns a failed-but-produced resource

Blessed by Eric 2026-09-23. RError is a generated error declaration
(Failed / FailedWithResource / NothingProduced); the error owns and
destroys a failed-but-produced resource and ? moves that ownership; a
resource owned by an error admits raw access only until the facade can mark
failure-state operations; the generated name collides loudly; no
(status, Option[R]) constructor under ok; in-place with ok frees the pinned
heap cell with no destruction call on failure. PR #1426 (stage 5)
conforms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant