Last Updated: February 25, 2016
· lucaong

Scala Pattern Matching and Validation of Structured Input

I recently wrote a short blog post where I discuss an interesting application of Scala pattern matching: validation and decomposition of structured input. I feel this example can be useful to people learning Scala to see how pattern matching and custom extractors can be used in a real world situation to write leaner and safer code.