Code by Any Other Name Pattern matching in Scala for expressions by Ian Robertson January 31, 2010 Summary Scala pattern matchers with side effects can have unexpected results in for expressions. Scala has taken the traditional for-construct and put it on steroids. One of the interesting features is the ability to use pattern matching as part of a for expression. For example, the following: case c