Skip to content

Replace exception-driven Variant encoding - #400

Draft
ruslandoga wants to merge 1 commit into
masterfrom
rd/replace-variant-exceptions
Draft

Replace exception-driven Variant encoding#400
ruslandoga wants to merge 1 commit into
masterfrom
rd/replace-variant-exceptions

Conversation

@ruslandoga

Copy link
Copy Markdown
Collaborator

Replaces Variant's exception-driven candidate probing with compatibility classification before encoding.
The classifier covers scalar values and recursively checks nullable, array, tuple, and map members while preserving canonical first-match behavior.
This removes exception overhead for integer-heavy variants and ensures real encoder errors are no longer hidden as type mismatches.
Validated with the full test suite (475 tests), focused regression coverage, formatting, and git diff --check.

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