Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

exhaustive

A switch is exhaustive when its cases cover every possible value of the selector.

A switch is exhaustive when every value of the selector's type matches some case, without guards counting; a switch expression must be exhaustive, and so must a pattern switch over a sealed type, an enum or Object.

Read the full section →