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

Shawn Erickson shawnce at gmail.com
Sun Feb 21 18:21:20 CST 2016


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.

Review - https://github.com/shawnce/swift/pull/1

On Sun, Feb 21, 2016 at 4:12 PM Dmitri Gribenko <gribozavr at gmail.com> wrote:

> On Sun, Feb 21, 2016 at 9:57 AM, Shawn Erickson <shawnce at gmail.com> wrote:
> > First I see that Dmitri G. appears to be most involved with this yet in
> the
> > other thread I see Dmitri H. being copied. So which/both of you involved
> > with this effort? ...or are you one and the same given the similarity of
> the
> > name? /me hopes he doesn't look like a total idiot now
>
> I'm just one Dmitri.
>
> > Second given commit access limits it may make sense for those of us on
> the
> > "outside" to work in same fork (e.g. added as collaborators)? It may help
> > avoid pull request overhead between us while work is underway? My github
> > identity is "shawnce". I have a fork created
> > https://github.com/shawnce/swift if so desired to use that as the
> sandbox
> > (set default branch to swift-3-indexing-model). ...looking for guidance
> on
> > how best to make things work efficiently.
>
> I'll check if it is possible to give you commit access.
>
> > I am digging into
> >
> https://github.com/apple/swift/blob/master/test/Prototypes/CollectionsMoveIndices.swift
> > to understand the scope of the work involved.
> >
> > Anyway I am looking at the current state of the code and I see things
> like
> > the following...
> >    @available(*, unavailable, renamed="MutableCollection")
> >     public typealias MutableCollectionType = MutableCollection
> > ...so it looks like the use of Type is being dropped in the updated
> naming
> > methodology? So this obviously implies... right?
> > //     [new]   protocol BidirectionalCollection : Collection {}
> > //     [new]   protocol RandomAccessCollection : BidirectionalCollection
>
> Right.  The prototype is currently written using old names.
>
> 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>*/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160222/1c952f99/attachment.html>


More information about the swift-dev mailing list