<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-02-06 15:35 GMT+03:00 Tino Heth via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span class=""><blockquote type="cite"><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Consider even if we had compile-time constants like Vector&lt;T, size: Int&gt; — how would that be implemented? What would its backing-type be?</div></div></blockquote></span><div>Imho it&#39;s very simple — UnsafeMutableBufferPointer would be an obvious choice.</div></div></div></blockquote><div><br></div><div>And then we just have an Array&lt;T&gt; with static size guarantee. But to solve the import story and gain space for optimization, we need stack-storage arrays.<br></div></div></div></div>