> On Jan 19, 2017, at 10:42 PM, Jose Cheyo Jimenez <[email protected]> wrote:
> 
> I just have one concern about the slice of a string being called Substring. 
> Why not StringSlice? The word substring can mean so many things, specially in 
> cocoa. 

This idea has a lot of merit, as does the option of not giving them a top-level 
name at all e.g. they could be String.Slice or String.SubSequence. It would 
underscore that they really aren’t meant to be used except as the result of a 
slicing operation or to efficiently pass a slice. OTOH, Substring is a term of 
art so can help with clarity.


_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to