[swift-evolution] [Pitch] Changing the behavior of Subsequences of String Views

Dmitri Gribenko gribozavr at gmail.com
Tue Jun 28 12:25:35 CDT 2016


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