[swift-evolution] [Pitch] Changing the behavior of Subsequences of String Views
Loïc Lecrenier
loiclecrenier at icloud.com
Tue Jun 28 14:10:51 CDT 2016
Hi Dmitri,
Thanks for the quick answer, I filed a bug here: https://bugs.swift.org/browse/SR-1927
(Unfortunately, I don’t think I could write a patch myself)
Loïc
> On Jun 28, 2016, at 7:25 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>
> On Tue, Jun 28, 2016 at 9:46 AM, Loïc Lecrenier
> <swift-evolution at swift.org> wrote:
>> I think String’s Views should
>> 1. Follow Collection’s documentation by using the same indices for their subsequences
>> 2. Provide safe, consistent behavior when using a subscript operation with a past-the-end index
>
> Hi Loïc,
>
> These are bugs. Fixes for these bugs don't need to be approved by
> swift-evolution. We would appreciate patches for these issues.
>
> I believe though that the fixes might be non-trivial. I'd be happy to
> discuss ideas how to fix this and will help review the patches.
>
> 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 <gribozavr at gmail.com>*/
More information about the swift-evolution
mailing list