How does the match expression differ from a switch statement?
- A match returns a value, uses strict comparison and has no fall-through
- B match uses loose comparison
- C switch returns a value
- D They are identical
Answer
match returns a value, uses strict comparison and has no fall-through
match also throws UnhandledMatchError when no arm matches, rather than silently doing nothing as switch does without a default.





