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

Dmitri Gribenko gribozavr at gmail.com
Sun Feb 21 18:37:12 CST 2016


On Sun, Feb 21, 2016 at 4:35 PM, Shawn Erickson <shawnce at gmail.com> wrote:
> Yeah I was fairly sure that was the direction it should go. Was trying to
> understand what existed and why. I was also bucketing things in a
> nondestructive way in the short term until I understood more about the
> existing Collection code.
>
> Do we want a ForewardCollection like the prototype or just refocus
> Collection on that with the two new subprotocols adding in the other
> behaviors (existing Collection is mostly forward indexing with where on
> Index type to adjust behavior).

I think ForwardCollection should be called just Collection, and have
two refined protocols just as you are describing it.

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