Exhaustive Switches

Make switch and match statements provably total so adding a case forces every site to handle it, with no default that hides the gap. Use when branching over an enum, union, or sealed type.

Amey-Thakur Updated

File contents

Amey-Thakur/AI-SKILLS/tree/main/skills/code-quality/exhaustive-switches commit f94efd15ea

Frequently asked questions

npx skillmds@latest add amey-thakur/exhaustive-switches