[swift-evolution] Checking in; more thoughts on arrays and variadic generics

Anton Zhilin antonyzhilin at gmail.com
Mon Feb 6 09:26:32 CST 2017

2017-02-06 15:35 GMT+03:00 Tino Heth via swift-evolution <
swift-evolution at swift.org>:

> Consider even if we had compile-time constants like Vector<T, size: Int> —
> how would that be implemented? What would its backing-type be?
> Imho it's very simple — UnsafeMutableBufferPointer would be an obvious
> choice.

And then we just have an Array<T> with static size guarantee. But to solve
the import story and gain space for optimization, we need stack-storage
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170206/ba7d8428/attachment.html>

More information about the swift-evolution mailing list