title: Are the Tuples in Swift complete alternative to Anonymous types as in C#
body: <p>Like <a href="http://msdn.microsoft.com/en-us/library/bb397696.aspx" rel="nofollow">Anonymous Types in C#</a>. Are the Tuples in the newly launched language Swift can do what Anonymous types in C# can do?</p>
  
  <p>While learning swift, I found a few statements (They call it Tuples) like</p>
  
  <pre><code>let http200Status = (statusCode: 200, description: "OK")
  </code></pre>
  
  <p>And we can access them in way like</p>
  
  <pre><code>println("The status code is \(http200Status.statusCode)")
  // prints "The status code is 200"
  println("The status message is \(http200Status.description)")
  // prints "The status message is OK”
  </code></pre>
  
  <p>It feels exactly like Anonymous types in C#.</p>
  
  <p>Is Tuple in Swift complete alternative to anonymous types in C#? Can someone give me a comparison of Tuples and Anonymous types? What I can do in one and cannot do in other. I found one thing so far that in C#, we cannot return Anonymous types (unless as object) but we can do it in Swift.</p>