This is a deliberate design choice. As written in The Swift Programming Language:<br><br>&quot;Use UInt only when you specifically need an unsigned integer type with the same size as the platform’s native word size. If this is not the case, Int is preferred, even when the values to be stored are known to be non-negative. A consistent use of Int for integer values aids code interoperability, avoids the need to convert between different number types, and matches integer type inference, as described in Type Safety and Type Inference.&quot;<br><br>You are correct that arrays with count greater than Int.max are unsupported.<br><div class="gmail_quote"><div dir="ltr">On Thu, Mar 16, 2017 at 11:13 G Alexander via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" class="gmail_msg">
<div id="m_-2941946453690588104divtagdefaultwrapper" style="font-size:10pt;color:#000000;font-family:Garamond,Georgia,serif" dir="ltr" class="gmail_msg">
<p class="gmail_msg"></p>
<div class="gmail_msg">All,<br class="gmail_msg">
<br class="gmail_msg">
<div class="gmail_msg">Why does swift fails to fully implement UInt in any object, arrays, sequence, range, etc<br class="gmail_msg">
<br class="gmail_msg">
Initializer for Range, from &quot;<a href="http://swiftdoc.org/v3.1/type/Range/" class="gmail_msg" target="_blank">http://swiftdoc.org/v3.1/type/Range/</a>&quot;<br class="gmail_msg">
<br class="gmail_msg">
 For example, passing a closed range with an upper bound of Int.max triggers a runtime error, because the resulting half-open range would require an upper bound of Int.max + 1, which is not representable as an Int.<br class="gmail_msg">
<br class="gmail_msg">
So any algorithm that needs large arrays such that,   UInt64.max &gt; index &gt; Int64  too bad?</div>
<br class="gmail_msg">
</div>
<div id="m_-2941946453690588104Signature" class="gmail_msg"></div>
</div>
</div>

_______________________________________________<br class="gmail_msg">
swift-evolution mailing list<br class="gmail_msg">
<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a><br class="gmail_msg">
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class="gmail_msg">
</blockquote></div>