Skip to content

Add exhaustive match rule - #79

Open
David Mládek (mladedav) wants to merge 1 commit into
microsoft:mainfrom
mladedav:u/davidmladek/exhaustive-match
Open

David Mládek (mladedav) wants to merge 1 commit into
microsoft:mainfrom
mladedav:u/davidmladek/exhaustive-match

Conversation

@mladedav

Copy link
Copy Markdown
Contributor

Not sure if this belongs here at all, it's a style guideline rather than API guideline. I did write it before having that thought though, so I might as well publish the PR.

This is one of those things that I think can save us some trouble when an enum or a struct evolves and no one rigorously checks all usage sites. From experience, manual debug impls are the thing that often slips through, but there are also more dangerous cases.

@mladedav
David Mládek (mladedav) force-pushed the u/davidmladek/exhaustive-match branch from 38ca17e to 64fb439 Compare November 30, 2026 14:44

This branch has not been deployed

No deployments
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