eescala
eescala copied to clipboard
Need better examples of where to write pattern matching in code
There are two ways of implementing pattern matching solutions to many of the exercises in the slides:
- Put the match expression in a method in a companion object;
- Put the match expression in the super-trait.
We should have an explicit example of each before we start using them in solutions.