[swift-dev] SR-122 / CollectionsMoveIndices.swift Prototype

Dmitri Gribenko gribozavr at gmail.com
Sun Feb 21 18:26:19 CST 2016


On Sun, Feb 21, 2016 at 4:21 PM, Shawn Erickson <shawnce at gmail.com> wrote:
> As an FYI I have been playing around with things mostly to get my head
> around the base changes and implications on the existing stdlib
> implementation. It is very early still. I have no issues throwing it away if
> I am way off the rails.

Thank you!  I took a look briefly, and I have a question -- why are
you using ~Indexable as the base protocol?  Indexable itself only
exists to work around a compiler limitation and implement
IndexingIterator.  Otherwise we should be using Collection.

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-dev mailing list