> On Feb 2, 2017, at 3:06 AM, Jaden Geller via swift-evolution 
> <swift-evolution@swift.org> wrote:
> 
> It's not infinite (else subscript would trap)

I'm not necessarily a fan of the idea of allowing you to iterate over an 
`IncompleteRange`, but I have to ask: What do you imagine an infinite sequence 
of integers would do when it tried to go past the `max` value? As far as I can 
tell, trapping is the *only* sensible possibility.

(If you used a `BigInt` type, the sequence could of course then be infinite, or 
as infinite as memory allows.)

-- 
Brent Royal-Gordon
Architechies

_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to