[swift-evolution] Proposal: Contiguous Variables (A.K.A. Fixed Sized Array Type)
Brent Royal-Gordon
brent at architechies.com
Thu Jan 28 22:00:22 CST 2016
> Rather than introduce a new kind of declaration, I think we could add a few small features to tuples:
>
> - We could say the type (n * T) is equivalent to a homogeneous tuple of n elements, and
> - We could allow tuples to be subscriptable, producing a value of the common supertype of its elements.
>
> That would make the experience of working with imported C types a lot better.
I've thought about these two enhancements several times during the last few weeks, exactly as you describe them. +1.
--
Brent Royal-Gordon
Architechies
More information about the swift-evolution
mailing list