title: What Automatic Resource Management alternatives exist for Scala?
body: <p>I have seen many examples of ARM (automatic resource management) on the web for Scala. It seems to be a rite-of-passage to write one, though most look pretty much like one another. I <em>did</em> see a pretty cool example using continuations, though.</p>
  
  <p>At any rate, a lot of that code has flaws of one type or another, so I figured it would be a good idea to have a reference here on Stack Overflow, where we can vote up the most correct and appropriate versions.</p>