Skip to content

feat: improve definition and validation of exception lists#8

Merged
bntrtm merged 1 commit into
mainfrom
exception-improvements
Apr 5, 2026
Merged

feat: improve definition and validation of exception lists#8
bntrtm merged 1 commit into
mainfrom
exception-improvements

Conversation

@bntrtm
Copy link
Copy Markdown
Owner

@bntrtm bntrtm commented Apr 5, 2026

Separate the function for menu generation into two variadic functions: one expecting custom options, and one without.

Expect exception lists as variadic arguments with an appended indicator for whether the menu generation logic ought to treat the exception list as a whitelist or blacklist. Provide convenience wrappers that assist developers with satisfying the validation logic.

Not to be confused with the topic of 'Exception handling,' of course. 'Exception' here refers to an item provided to designate e menu field as blacklisted or whitelisted for render.

Separate the function for menu generation into two variadic functions: one expecting custom options, and one without.

Expect exception lists as variadic arguments with an appended indicator for whether the menu generation logic ought to treat the exception list as a whitelist or blacklist. Provide convenience wrappers that assist developers with satisfying the validation logic.

Not to be confused with the topic of 'Exception handling,' of course. 'Exception' here refers to an item provided to designate e menu field as blacklisted or whitelisted for render.
@bntrtm bntrtm merged commit fbf5ea0 into main Apr 5, 2026
@bntrtm bntrtm deleted the exception-improvements branch April 10, 2026 02:22
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