提交 00d71087 编写于 作者: T Tim Chevalier

Expunge mention of `match check` from the tutorial

上级 5e22fb9c
......@@ -751,10 +751,7 @@ match my_number {
If the arm with the wildcard pattern was left off in the above
example, the typechecker would reject it at compile time. `match`
constructs must be exhaustive: they must have an arm covering every
possible case. (You may use the `match check` construct to write a
non-exhaustive match, but it's highly undesirable to do so. You may
reason that the missing cases will never occur, but the typechecker
provides you with no assurance that your reasoning is correct.)
possible case.
A powerful application of pattern matching is *destructuring*, where
you use the matching to get at the contents of data types. Remember
......@@ -850,8 +847,6 @@ task failure:
* Accessing an out-of-bounds element of a vector.
* Having no clauses match when evaluating an `match check` expression.
* An assertion failure.
* Integer division by zero.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册