The following examples present pattern matching using the match keyword for the catch-all case.
The _ is used for the catch-all to indicate the important cases have been defined above and the last case is not important enough to warrant a name.
{{#include ../../../code/language/style-guide/pattern_matching/src/lib.sw:style_match_unnamed}}We may apply an appropriate name to provide context to the reader; however, unless it provides additional information the preferred usage is defined in the encouraged case.
{{#include ../../../code/language/style-guide/pattern_matching/src/lib.sw:style_match_named}}