You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+27-27Lines changed: 27 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -32,10 +32,10 @@ Swift 3.1
32
32
33
33
The `Sequence` protocol adds two new members `prefix(while:)` and
34
34
`drop(while:)` for common utility. `prefix(while:)` requests the longest subsequence
35
-
satisfying a predicate. `drop(while:)` requests the remaining
35
+
satisfying a predicate. `drop(while:)` requests the remaining
36
36
subsequence after dropping the longest subsequence satisfying a
37
37
predicate.
38
-
38
+
39
39
**Add new entries to the top of this file, not here!**
40
40
41
41
Swift 3.0
@@ -58,9 +58,9 @@ Swift 3.0
58
58
*[SE-0125][]:
59
59
60
60
The functions `isUniquelyReferenced()` and `isUniquelyReferencedNonObjC()`
61
-
have been removed. Call the function `isKnownUniquelyReferenced()` instead.
62
-
63
-
Classes using `isUniquelyReferenced()` needed to inherit from `NonObjectiveCBase`. The `NonObjectiveCBase` class has been removed.
61
+
have been removed. Call the function `isKnownUniquelyReferenced()` instead.
62
+
63
+
Classes using `isUniquelyReferenced()` needed to inherit from `NonObjectiveCBase`. The `NonObjectiveCBase` class has been removed.
64
64
65
65
The method `ManagedBufferPointer.holdsUniqueReference` has been renamed to
66
66
`ManagedBufferPointer.isUniqueReference`.
@@ -132,9 +132,9 @@ Swift 3.0
132
132
to `UnsafePointer<U>` has been disallowed. `Unsafe[Mutable]RawPointer`
133
133
provides an API for untyped memory access, and an API for binding memory
134
134
to a type. Binding memory allows for safe conversion between pointer types.
135
-
135
+
136
136
For detailed instructions on how to migrate your code to the new API refer to the [UnsafeRawPointer migration guide](https://swift.org/migration-guide/se-0107-migrate.html). See also: See `bindMemory(to:capacity:)`, `assumingMemoryBound(to:)`, and
137
-
`withMemoryRebound(to:capacity:)`.
137
+
`withMemoryRebound(to:capacity:)`.
138
138
139
139
*[SE-0096][]:
140
140
@@ -209,7 +209,7 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
209
209
210
210
*[SE-0025][]:
211
211
212
-
The access level formerly known as `private` is now called `fileprivate`. A Swift 3 declaration marked `private` can no longer be accessed outside its lexical scope (essentially its enclosing curly braces `{}`). A `private` declaration at the top level of a file can be accessed anywhere within the same file, as it could in Swift 2.
212
+
The access level formerly known as `private` is now called `fileprivate`. A Swift 3 declaration marked `private` can no longer be accessed outside its lexical scope (essentially its enclosing curly braces `{}`). A `private` declaration at the top level of a file can be accessed anywhere within the same file, as it could in Swift 2.
213
213
214
214
*[SE-0131][]:
215
215
@@ -330,9 +330,9 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
330
330
331
331
* [SE-0112][]:
332
332
333
-
The `NSError` type now bridges to the Swift `Error` protocoltype (formerly `ErrorProtocol` in Swift 3, `ErrorType` in Swift 2)
334
-
in Objective-C APIs. `NSError` now bridges like other Objective-C types, e.g., `NSString` bridges to `String`.
335
-
333
+
The `NSError` type now bridges to the Swift `Error` protocoltype (formerly `ErrorProtocol` in Swift 3, `ErrorType` in Swift 2)
334
+
in Objective-C APIs. `NSError` now bridges like other Objective-C types, e.g., `NSString` bridges to `String`.
@@ -352,8 +352,8 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
352
352
353
353
Error types imported from Cocoa[Touch] maintain all of
354
354
the information in the corresponding `NSError`. You no longer `catchletas NSError` to extract, for example, the user-info
355
-
dictionary.
356
-
355
+
dictionary.
356
+
357
357
Specific error types now contain typed accessors for
358
358
their common user-info keys. For example:
359
359
@@ -513,7 +513,7 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
513
513
514
514
Enum elements can no longer be accessed as instance members in instance methods.
515
515
516
-
* As part of the changes for [SE-0055][] (see below), the *pointee* types of imported pointers (e.g. the `id` in `id *`) are no longer assumed to always be `_Nullable` even if annotated otherwise.
516
+
* As part of the changes for [SE-0055][] (see below), the *pointee* types of imported pointers (e.g. the `id` in `id *`) are no longer assumed to always be `_Nullable` even if annotated otherwise.
517
517
* An implicit or explicit annotation of `_Null_unspecified` on a pointee type still imports as `Optional`.
518
518
519
519
* [SE-0055][]:
@@ -561,7 +561,7 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
561
561
```
562
562
563
563
Comments can no longer appear between a unary operator and its argument.
564
-
564
+
565
565
```swift
566
566
foo/* comment */!// no longer works
567
567
```
@@ -607,36 +607,36 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
607
607
608
608
* The "none" members of imported NS_OPTIONS option sets are marked as unavailable when they are imported. Use `[]` to make an empty option set, instead of a None member.
609
609
610
-
* [SE-0043][]
610
+
* [SE-0043][]
611
611
612
612
Adds the ability to declare variables in multiple patterns in cases.
613
613
614
-
* [SE-0005][]
614
+
* [SE-0005][]
615
615
616
616
Allows the Clang importer to import ObjC symbols using substantially different Swift-like naming paradigms:
617
617
618
618
* These updates generalize the use of `swift_name`, allowing arbitrary C and Objective-C entity import names. This adds fine-grained control over the import process.
619
619
* Redundant type names are pruned (`documentForURL(_: NSURL)` becomes `document(for: URL)`). Selectors are guaranteed to never be empty, to be transformed into Swift keywords, to be vacuously named (like `get`, `set`, `with`, `for`). Additional pruning rules preserve readability and sense.
620
620
* Common arguments are sensibly defaulted where the Objective-C API strongly hints at the need for a default argument. (For example, nullable trailing closures default to `nil`, option sets to `[]`, and `NSDictionary` parameters to `[:]`.) First argument labels are added for defaulted arguments.
621
621
* Boolean properties are prepended with `is`, and read as assertions on the receiver.
622
-
* Non-type values, including enumerators, are lowerecased.
622
+
* Non-type values, including enumerators, are lowercased.
623
623
* Classes that implement `compare(_:) -> NSComparisonResult` automatically importas `Comparable`.
624
624
625
-
* [SE-0040][]
625
+
* [SE-0040][]
626
626
627
627
Attributes change from using `=` in parameters lists
The `@noescape` attribute is extended to be a more general type attribute. You can now declare values of `@noescape` function type, e.g. in manually curried function signatures. You can now also declare local variables of `@noescape` type, and use `@noescape` in `typealiases`. For example, this is now valid code:
654
654
@@ -659,7 +659,7 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
659
659
}
660
660
```
661
661
662
-
* [SE-0034][]
662
+
* [SE-0034][]
663
663
664
664
The `#line` directive (which resets the logical
665
665
source location for diagnostics and debug information) is renamed to `#sourceLocation`.
0 commit comments