eescala icon indicating copy to clipboard operation
eescala copied to clipboard

Need better examples of where to write pattern matching in code

Open davegurnell opened this issue 11 years ago • 0 comments

There are two ways of implementing pattern matching solutions to many of the exercises in the slides:

  1. Put the match expression in a method in a companion object;
  2. Put the match expression in the super-trait.

We should have an explicit example of each before we start using them in solutions.

davegurnell avatar Oct 21 '14 15:10 davegurnell