title: Variables of type void
body: <p>So I know that <code>Void</code> is used to indicate that a function doesn't take or return a value.
  In Swift, <code>Void</code> is actually a type alias for the empty tuple <code>()</code>.</p>
  
  <p>Interestingly (in Beta 6), you can even declare variables of type <code>Void</code>: </p>
  
  <pre><code>var x: Void
  println(x)
  x = test()
  
  func test() {}
  </code></pre>
  
  <p>These statements are all legal. The <code>println()</code> prints "()".</p>
  
  <p>So far I couldn't figure out what else this can be used for. Why would you need a variable that can't hold any value? Does anyone know a practical use for this, or is this just one of the quirks of Swift?</p>