title: coffeescript and enum values
body: <p>I was playing around with the concept of enums / constants in coffeescript ( <a href="http://coffeescript.org/" rel="noreferrer">http://coffeescript.org/</a> ) and came up with the following code below which seems OK. How can I enhance this to be even better for something where an enum would fit? google searches for this have not yet revealed satisfaction.</p>
  
  <pre><code>class SomeService
  
    @SomeEnumValue : 400
    @SomeOtherValue : 402
  
    someFunc: -&gt;
      SomeService.SomeEnumValue 
  
  ok = new SomeService()
  alert ok.someFunc()
  
  if (ok.someFunc() == SomeService.SomeEnumValue) then alert ' some enum value'
  </code></pre>