Exhaustiveness
Make the compiler prove you handled every case. Assign the value to never in the default branch: never accepts nothing, so if any case is unhandled the assignment fails and the message names the type you forgot.
That is what makes adding a case to a union safe across a large codebase. Add a fourth state and every switch that does not handle it becomes an error, which is refactoring that finds its own work.
Mark this lesson complete
Signed in, your progress follows you to every device.