Explain why exhaustiveness is necessary for soundness
This commit is contained in:
parent
5ddfd9bfe9
commit
d859c9924e
|
|
@ -37,7 +37,8 @@ match x {
|
|||
|
||||
Thus usefulness is used for two purposes:
|
||||
detecting unreachable code (which is useful to the user),
|
||||
and ensuring that matches are exhaustive (which is important for soundness).
|
||||
and ensuring that matches are exhaustive (which is important for soundness,
|
||||
because a match expression can return a value).
|
||||
|
||||
## Where it happens
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue