<div dir="ltr"><div>Type safety would make tuples far more powerful than their current limitations. Structs are usually used for slightly more complex objects compared to tuples and usually, you need them longer in memory. Tuples are just for quick manipulation. Since you are interested in just the content inside, you should be able to manipulate it quickly. Concrete examples would be destructing JSON or manipulating any list. That manipulation itself shouldn't be something used with Switch statements or require multiple if let statements. </div><div><br></div><div>I'm actually not a fan of the C#'s implementation of tuples. Mainly because they don't use optionals and the tuple implementation isn't very clean</div><div><br></div><div>var aTuple = Tuple.Create ("foo","bar",111) </div><div><br></div><div>The main problem is that Swift's tuples functionalities are very limited to be able to use them. <br clear="all"><br>-- <br></div><div class="gmail_signature"><div dir="ltr">Best Regards,<div><br></div><div>Muhammad T. Vali</div></div></div>
</div>