# Roadmap for and state of single element tuple types?

**URL:** <https://forums.swift.org/t/roadmap-for-and-state-of-single-element-tuple-types/13711>\
**Category:** Discussion\
**Created:** [June 15, 2018, 1:40pm UTC](https://forums.swift.org/t/roadmap-for-and-state-of-single-element-tuple-types/13711 "2018-06-15T13:40:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tino](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tino/32/1073_2.png) [@Tino](https://forums.swift.org/u/Tino)\
**Post date:** [June 16, 2018, 11:00am UTC](https://forums.swift.org/t/roadmap-for-and-state-of-single-element-tuple-types/13711/2 "2018-06-16T11:00:55Z")

</div>

My impression is that tuples don't get enough attention:  
There's much interest in large topics (existential types, variadic generics...), but tuples don't seem to be important enough to write manifests for them - yet issues regarding them pop up all the time (the latest probably [Some small keypath extensions: identity and tuple components](https://forums.swift.org/t/some-small-keypath-extensions-identity-and-tuple-components/13729)).

I think a long-term plan for tuples and the significance of labels (not only in tuples) could help a lot.  
Your milage may vary, but I had to fire up the compiler to check what is possible and what not, and I have no idea how Swift 7 might deal with some tuple assignments...

```
var tup0: (Int, Int) = (key: 2, 2)
let tub0: (a: Int, b: Int) = (2, b: 1)
tup0 = tub0 // works

var tup1 = (key: 2, 2)
let tub1: (a: Int, b: Int) = (2, b: 1)
tup1 = tub1 // doesn't compile

var tup1b = (key: 2, 2)
let tub1b: (a: Int, b: Int) = (2, b: 1)
tup1b = tub1b as! (key: Int, Int) // compiles & crashes
	
var tup2: (key: Int, Int) = (2, b: 1)
let tub2 = (key: 2, second: 2)
tup2 = tub2 // works

var tup3: (key: Int, Int) = (2, b: 1)
let tub3 = (first: 2, second: 2)
tup3 = tub3 // doesn't compile

```

---

_[View the full topic](https://forums.swift.org/t/roadmap-for-and-state-of-single-element-tuple-types/13711)._
