[swift-evolution] Strings in Swift 4

David Sweeris davesweeris at mac.com
Sun Jan 22 23:05:15 CST 2017

> On Jan 22, 2017, at 15:40, Chris Lattner via swift-evolution <swift-evolution at swift.org> wrote:
> Right, the only sensible semantics for a one sided range with an open end point is that it goes to the end of the collection.  I see a few different potential colors to paint this bikeshed with, all of which would have the semantics ā€œc[i..<c.endIndex]ā€:
> 1) Provide "c[i...]":
> 2) Provide "c[i..<]":
> 3) Provide both "c[i..<]ā€ and "c[iā€¦]":

Agreed on the semantics. I don't suppose "c[i..<_]" is a possible 4th option, is it? Even if it is, I'm not sure it's better than 1-3; just tossing it out there.

- Dave Sweeris 

More information about the swift-evolution mailing list