Skip to content

Commit 5de4ee2

Browse files
committed
Proposal #6: more API diffs
1 parent 5a0fcfc commit 5de4ee2

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

proposals/0006-apply-api-guidelines-to-the-standard-library.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ implied.
177177

178178
-public protocol CVarArgType { ... }
179179
+public protocol CVarArg { ... }
180+
181+
-public protocol MirrorPathType { ... }
182+
+public protocol MirrorPath { ... }
180183
```
181184

182185
* The concept of `generator` is renamed to `iterator` across all APIs.
@@ -736,7 +739,7 @@ public struct OpaquePointer : ... {
736739
// Changes to this protocol affect `Array`, `ArraySlice`, `ContiguousArray` and
737740
// other types.
738741
public protocol RangeReplaceableCollection : ... {
739-
+ public init(repeating: Iterator.Element, count: Int)
742+
+ public init(repeating repeatedValue: Iterator.Element, count: Int)
740743

741744
- mutating func replaceRange<
742745
+ mutating func replaceSubrange<
@@ -763,6 +766,8 @@ public struct OpaquePointer : ... {
763766
+ public mutating func removeAt(index: Index) -> Element
764767
}
765768

769+
+extension Set : SetAlgebra {}
770+
766771
public struct Dictionary<Key : Hashable, Value> : ... {
767772
- public typealias Element = (Key, Value)
768773
+ public typealias Element = (key: Key, value: Value)
@@ -804,6 +809,15 @@ public struct OpaquePointer : ... {
804809

805810
- public init(count: Int, repeatedValue c: UnicodeScalar)
806811
+ public init(repeating repeatedValue: UnicodeScalar, count: Int)
812+
813+
- public var utf8: UTF8View { get }
814+
+ public var utf8: UTF8View { get set }
815+
816+
- public var utf16: UTF16View { get }
817+
+ public var utf16: UTF16View { get set }
818+
819+
- public var characters: CharacterView { get }
820+
+ public var characters: CharacterView { get set }
807821
}
808822

809823
public enum UnicodeDecodingResult {

0 commit comments

Comments
 (0)