P3549

Diverging expressions

R1

One pattern that will occur with some regularity with pattern matching [[P2688R6] (Pattern Matching with `match` and `case`)](https://wg21.link/p2688r6) (and [[P2806R5] (do expressions)](https://wg21.link/p2806r5)) is the desire to produce values for some patterns but not for all. Consider the following simplified example:

Authors
Barry Revzin, Michael Park, Zach Laine, Bruno Cardoso Lopes
Mailing
2026-10
Doc date
2026-10-14
Audience
EWG