> On Jun 13, 2017, at 6:16 PM, Xiaodi Wu <xiaodi...@gmail.com> wrote:
> 
> I’m coming to this conversation rather late, so forgive the naive question:
> 
> Your proposal claims that current code with failable APIs is needlessly 
> awkward and that most code only interchanges indices that are known to 
> succeed. So, why is it not simply a precondition of string slicing that the 
> index be correctly aligned? It seems like this would simplify the behavior 
> greatly.

Well, consider the case raised by Kevin Ballard if nothing else: that code 
would start trapping. 

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

Reply via email to