<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<div>I'm looking at Swift 3.0.1 now. This code works fine:</div><div><br /></div><div>for i in 0..<UInt8.max {</div><div> print(i)</div><div>}</div><div><br /></div><div>And so does this code:</div><div><br /></div><div>for i in 0...UInt8.max {</div><div> print(i)</div><div>}</div><div><br /></div><div>These codes used to crash in earlier Swifts. Can you explain why? What changed in the meantime? It had something to do with the range overflow at UInt8.max.</div> </body>
</html>