title: Scala Option: map vs Pattern Matching
body: <p>While dealing with <code>Option</code> in Scala what are the things I should be considering to decide whether to map or patten match? For example, if I have <code>Option[MyClass]</code>, I can deal with it the following ways:</p>
  
  <pre><code>def getList(myOptionInstance: Option[MyClass]): List[String] =
    myOptionInstance map (...) getOrElse(List.empty[String])
  </code></pre>
  
  <p>or</p>
  
  <pre><code>def getList(myOptionInstance: Option[MyClass]): List[String] = myOptionInstance match {
    case Some(mySomeInstance) =&gt; .....
    case None =&gt; List.empty[String]
  }
  </code></pre>
  
  <p>When will I choose one over the other?</p>