title: How is a match word omitted in Scala?
body: <p>In Scala, you can do </p>
  
  <pre><code>list.filter { item =&gt;
      item match {
        case Some(foo) =&gt; foo.bar &gt; 0
      }
  }
  </code></pre>
  
  <p>But you can also do the quicker way by omitting <code>match</code>:</p>
  
  <pre><code>list.filter {
    case Some(foo) =&gt; foo.bar &gt; 0
  }
  </code></pre>
  
  <p>How is this supported in Scala? Is this new in 2.9? I have been looking for it, and I can figure out what makes this possible. Is it just part of the Scala compiler?</p>