Skip to content

feat(make): add unknownfield hook#52

Merged
quinnj merged 2 commits intomainfrom
codex/unknownfield-hook
Apr 22, 2026
Merged

feat(make): add unknownfield hook#52
quinnj merged 2 commits intomainfrom
codex/unknownfield-hook

Conversation

@quinnj
Copy link
Copy Markdown
Member

@quinnj quinnj commented Apr 21, 2026

Summary

  • add a new StructUtils.unknownfield style hook for unmatched keys and indexes during make/make!
  • route the tuple and struct construction paths through the hook while preserving the default ignore behavior
  • add regression tests showing custom styles can turn extra inputs into errors

Testing

  • julia --project -e 'using Pkg; Pkg.test()'

quinnj added 2 commits April 21, 2026 16:55
Add a new StructUtils.unknownfield style hook for unmatched keys or
indexes during make/make!.

Route the tuple and struct construction paths through the hook while
preserving the default ignore behavior, and add regression tests that
verify custom styles can turn extras into errors.
Swap the temporary Some-based sentinel used in the unknownfield
implementation for a private internal wrapper.

This keeps the matched-vs-unmatched distinction without using Some in
control flow, while preserving the same hook behavior and test
coverage.
@quinnj quinnj merged commit fc34d19 into main Apr 22, 2026
8 checks passed
@quinnj quinnj deleted the codex/unknownfield-hook branch April 22, 2026 15:17
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