where did _ArrayType go in Swift 3?

2019-07-15 00:57发布

问题:

I have some code that used to relay on _ArrayType in pre Swift 3. I am trying to understand what happened to public protocol _ArrayType.

Any idea?

回答1:

_ArrayType was renamed _ArrayProtocol. You can see this in the ArrayType.swift file and this commit.

internal protocol _ArrayProtocol
  : RangeReplaceableCollection,
    ExpressibleByArrayLiteral
{
    // ...
}