title: Scala match/compare enumerations
body: <p>I have an enumeration that I want to use in pattern matches in an actor.  I'm not getting what i'd expect and, now, I'm suspecting I'm missing something simple.</p>
  
  <p>My enumeration,</p>
  
  <pre><code>object Ops extends Enumeration {
    val Create = Value("create")
    val Delete = Value("delete")
  }
  </code></pre>
  
  <p>Then, I create an Ops from a String:</p>
  
  <pre><code>val op = Ops.valueOf("create")
  </code></pre>
  
  <p>Inside my match, I have:</p>
  
  <pre><code>case (Ops.Create, ...)
  </code></pre>
  
  <p>But Ops.Create doesn't seem to equal ops.valueOf("create")</p>
  
  <p>The former is just an atom 'create' and the later is Some(create)</p>
  
  <p>Hopefully, this is enough info for someone to tell me what I'm missing...</p>
  
  <p>Thanks</p>