title: Swap with out vs ref
body: <p>What's the better way of implementing a swap function? How would using ref be better than using out, or vice versa? Any other benefits or drawbacks that will occur from using one or the other?</p>
  
  <pre><code>swapref(ref T a, ref T b) {
    T temp = a;
    a = b;
    b = temp;
  }
  
  swapout(out T a, out T b)
  { 
     T temp = a;
     a = b;
     b = temp;
  }
  </code></pre>