Re: [swift-evolution] Partial Ranges (was: Strings in Swift 4)

2017-02-08 Thread Ben Cohen via swift-evolution
Hi Jonathan, It looks like the majority of this is about finite vs infinite collections. This should be a separate thread, and one we certainly need to have, but doesn’t need to be mixed together with the wider one-sided ranges discussion. For now, I think it’s reasonable to say that 1) left-on

Re: [swift-evolution] Partial Ranges (was: Strings in Swift 4)

2017-02-07 Thread Jonathan Hull via swift-evolution
>> Oh, sorry, I was referring to an earlier post I made in this thread, >> but didn’t make that clear. I’ll give a longer explanation of my >> reasoning behind the statement that partial ranges shouldn’t conform >> to Sequence (on their own) below... but the short version is that the >> conforman

[swift-evolution] Partial Ranges (was: Strings in Swift 4)

2017-02-05 Thread Dave Abrahams via swift-evolution
on Sun Feb 05 2017, Jonathan Hull wrote: > Just out of curiosity, what are the use-cases for an infinite sequence > (as opposed to a sequence which is bounded to the type’s representable > values)? 1. The type may not have an inherent expressible bound (see BigInt, >