Patternmatching

Futures in Scala

published on

Not-yet-available values in Scala: Futures!

Whenever we want to use a value that is not readily available yet – for example, when we call a function to compute or fetch something over the network – we can not be sure if things go as were planned. What if the database connection is down? What if the user typed in an invalid string?

Read More...

Basic pattern matching in Scala

published on

Introduction to pattern matching in Scala

Pattern matching is a quite commonly used “programming pattern” in functional languages, because it fits nicely into the “functional way of thinking”, and it is quite powerful and handy as a tool.

Read More...