|
|
|
|
|
by modersky
4481 days ago
|
|
I think that's a pretty extreme position. First, it will run a lot slower than the pattern matching alternative: optional match {
case Some(x) => whatever(x)
case None => fallback
}
Second, I find the pattern matching code much clearer. Sure, it's also longer, but clarity trumps everything. |
|