Skip to content

Allow custom Quoter to be injected into CompositeHandler::create()#14

Merged
henriquemoody merged 1 commit intoRespect:mainfrom
henriquemoody:composite_quoter
May 10, 2026
Merged

Allow custom Quoter to be injected into CompositeHandler::create()#14
henriquemoody merged 1 commit intoRespect:mainfrom
henriquemoody:composite_quoter

Conversation

@henriquemoody
Copy link
Copy Markdown
Member

Previously, create() hardcoded CodeQuoter internally, giving callers no way to influence how values are quoted without rebuilding the entire handler chain manually. Now it accepts an optional Quoter parameter, defaulting to CodeQuoter to preserve backward compatibility.

This makes the factory method more extensible: users can pass whichever Quoter implementation works best for their context — for example, a plain quoter that omits code formatting, or a custom one with different length limits — without having to bypass create() entirely.

Assisted-by: Claude Code (claude-sonnet-4-6)

Previously, `create()` hardcoded `CodeQuoter` internally, giving callers
no way to influence how values are quoted without rebuilding the entire
handler chain manually. Now it accepts an optional `Quoter` parameter,
defaulting to `CodeQuoter` to preserve backward compatibility.

This makes the factory method more extensible: users can pass whichever
`Quoter` implementation works best for their context — for example, a
plain quoter that omits code formatting, or a custom one with different
length limits — without having to bypass `create()` entirely.

Assisted-by: Claude Code (claude-sonnet-4-6)
@henriquemoody henriquemoody merged commit 7e3d7d6 into Respect:main May 10, 2026
5 checks passed
@henriquemoody henriquemoody deleted the composite_quoter branch May 10, 2026 19:23
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