Cases should have more than one clause
A case expression with a single case clause is a glorified pattern match which can be accomplished with a single line of code. This is also generally a sign of incomplete refactoring of existing source code.
Cases should have more than one clause
A case expression with a single case clause is a glorified pattern match which can be accomplished with a single line of code. This is also generally a sign of incomplete refactoring of existing source code.