[swift-evolution] Yet another fixed-size array spitball session

David Sweeris davesweeris at mac.com
Tue May 30 00:51:34 CDT 2017

> On May 29, 2017, at 22:03, Pavol Vaskovic via swift-evolution <swift-evolution at swift.org> wrote:
> I'm sorry if I'm misunderstanding your proposal, but I think Swift already has "array types whose size is fixed at compile time" called Tuple.

Tuples don't support subscripting or protocol conformance. Or an easy syntax to declare/initialize them... `(Int, Int, Int, Int)` isn't *that* horrible compared to "[Int x 4]", but would you want to replace "[Int8 x 10000]" with the multipage-long tuple equivalent?

- Dave Sweeris 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170529/96044766/attachment.html>

More information about the swift-evolution mailing list