title: Is it bad practice to return from within a try catch finally block?
body: <p>So I came across some code this morning that looked like this:</p>
  
  <pre><code>try
  {
      x = SomeThingDangerous();
      return x;
  }
  catch (Exception ex)
  {
      throw new DangerousException(ex);
  }
  finally
  {
      CleanUpDangerousStuff();
  }
  </code></pre>
  
  <p>Now this code compiles fine and works as it should, but it just doesn't feel right to return from within a try block, especially if there's an associated finally.</p>
  
  <p>My main issue is what happens if the finally throws an exception of it's own? You've got a returned variable but also an exception to deal with... so I'm interested to know what others think about returning from within a try block?</p>