Skip to content

v4: nest the builder holder as RespRequestBuilder.Holder - #3423

Merged
mgravell merged 1 commit into
v4from
marc/v4-builder-holder-nested
Dec 4, 2026
Merged

mgravell merged 1 commit into
v4from
marc/v4-builder-holder-nested

Conversation

@mgravell

@mgravell mgravell commented Dec 4, 2026

Copy link
Copy Markdown
Member

Follow-up to #3422. RespRequestBuilderHolder becomes RespRequestBuilder.Holder, in a new partial file (RespRequestBuilder.Holder.cs).

  • The holder only exists to serve the builder, and new RespRequestBuilder.Holder() says so at the call site.
  • As a nested type it can read and write the builder's private fields. So the internal StoreInto, Hold(...) and the internal holder state fields go away; the store/take logic lives in one place, and the holder's copy of the state is private.
  • Behaviour is unchanged. The same 15 tests pass, renamed only.

v4 hasn't shipped, so this changes PublicAPI.Unshipped.txt rather than breaking anything. Docs (docs/Execute.md, the design note) are updated to the new name.

The holder only exists to serve the builder, so it reads better as
RespRequestBuilder.Holder. As a nested type it can also reach the builder's
private state directly, which removes the internal StoreInto / Hold / state
fields plumbing between the two. Not yet shipped, so this is a rename, not a break.
@mgravell
mgravell merged commit 1dbae68 into v4 Dec 4, 2026
3 checks passed
@mgravell
mgravell deleted the marc/v4-builder-holder-nested branch December 4, 2026 20:01
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