|
|
|
|
|
by fjh
3498 days ago
|
|
match also lets you destructure values, which is useful when you're dealing with enums. It also doesn't have C's fall-through behaviour. Edit:
match doesn't insist on a default clause, it enforces exhaustiveness. Which can be achieved by having a default clause, but quite often you just have an explicit branch for every possible case. |
|