On Mon, Jul 18, 2016 at 3:29 PM, Dave Abrahams via swift-evolution
<[email protected]> wrote:
>
> on Mon Jul 18 2016, Kevin Nattinger <[email protected]> wrote:
>
>> I agree, true is definitely the expected behavior. In particular, it
>> seems absurd to me that `a.hasPrefix(b)` and `a.hasSuffix(b)` could be
>> false when `a == b` is true.
>
> I expect to be reworking Strings for Swift 4, and this is one of the
> many things we plan to address.
Why not implement the change right now so that we change the semantics
in Swift 3 rather than in Swift 4?
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <[email protected]>*/
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution