Scala/Play · Part 3
Scala/Play, Part 3: A Policy Lookup That Might Find Nothing
From Java Optional to Scala Option: represent presence with Some, absence with None, and handle both outcomes with a match expression using our runnable policy lookup.
Tag
Scala/Play · Part 3
From Java Optional to Scala Option: represent presence with Some, absence with None, and handle both outcomes with a match expression using our runnable policy lookup.
Scala/Play · Part 2
From a Java-style policy class to Scala 2 case classes: constructor properties, value equality versus identity, and copying data without changing the original.
Scala/Play · Part 1
Starting Scala 2 from Java and Spring: val and var, expressions, a first method, and a small sbt project you can run. The first step in the Scala/Play series.