[swift-users] for i in 0...UInt8.max

Quinn "The Eskimo!" eskimo1 at apple.com
Wed Jan 11 09:12:11 CST 2017

On 11 Jan 2017, at 13:06, tuuranton--- via swift-users <swift-users at swift.org> wrote:

> These codes used to crash in earlier Swifts. Can you explain why?

We now have the notion of `ClosedRange`, which can represent all values in an integer type (at the cost of introducing the complexity of two different range types).

You can find a bunch of info about this at the following links.





Share and Enjoy
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

More information about the swift-users mailing list