4 ms·
Exactly the same with Scala. Option types demand pattern matching and similar techniques for working with those types. Otherwise you just have "if (x.isDefined
by threeseed 8y ago
Exactly the same with Scala.
Option types demand pattern matching and similar techniques for working with those types. Otherwise you just have "if (x.isDefined) a else b" blocks of code everywhere.