Skip to content

Commit 3210c94

Browse files
authored
Merge pull request #5446 from practicalswift/gardening-20161025
2 parents de5cad9 + ff346ec commit 3210c94

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

CHANGELOG.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ Swift 3.1
3232

3333
The `Sequence` protocol adds two new members `prefix(while:)` and
3434
`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
3636
subsequence after dropping the longest subsequence satisfying a
3737
predicate.
38-
38+
3939
**Add new entries to the top of this file, not here!**
4040

4141
Swift 3.0
@@ -58,9 +58,9 @@ Swift 3.0
5858
* [SE-0125][]:
5959

6060
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.
6464

6565
The method `ManagedBufferPointer.holdsUniqueReference` has been renamed to
6666
`ManagedBufferPointer.isUniqueReference`.
@@ -132,9 +132,9 @@ Swift 3.0
132132
to `UnsafePointer<U>` has been disallowed. `Unsafe[Mutable]RawPointer`
133133
provides an API for untyped memory access, and an API for binding memory
134134
to a type. Binding memory allows for safe conversion between pointer types.
135-
135+
136136
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:)`.
138138

139139
* [SE-0096][]:
140140

@@ -209,7 +209,7 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
209209

210210
* [SE-0025][]:
211211

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.
213213

214214
* [SE-0131][]:
215215

@@ -330,9 +330,9 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
330330

331331
* [SE-0112][]:
332332

333-
The `NSError` type now bridges to the Swift `Error` protocol type (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` protocol type (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+
336336
For
337337
example, the `UIApplicationDelegate` method
338338
`applicate(_:didFailToRegisterForRemoteNotificationsWithError:)`
@@ -352,8 +352,8 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
352352

353353
Error types imported from Cocoa[Touch] maintain all of
354354
the information in the corresponding `NSError`. You no longer `catch let as NSError` to extract, for example, the user-info
355-
dictionary.
356-
355+
dictionary.
356+
357357
Specific error types now contain typed accessors for
358358
their common user-info keys. For example:
359359

@@ -513,7 +513,7 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
513513

514514
Enum elements can no longer be accessed as instance members in instance methods.
515515

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.
517517
* An implicit or explicit annotation of `_Null_unspecified` on a pointee type still imports as `Optional`.
518518

519519
* [SE-0055][]:
@@ -561,7 +561,7 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
561561
```
562562

563563
Comments can no longer appear between a unary operator and its argument.
564-
564+
565565
```swift
566566
foo/* comment */! // no longer works
567567
```
@@ -607,36 +607,36 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
607607

608608
* 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.
609609

610-
* [SE-0043][]
610+
* [SE-0043][]
611611

612612
Adds the ability to declare variables in multiple patterns in cases.
613613

614-
* [SE-0005][]
614+
* [SE-0005][]
615615

616616
Allows the Clang importer to import ObjC symbols using substantially different Swift-like naming paradigms:
617617

618618
* 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.
619619
* 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.
620620
* 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.
621621
* 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.
623623
* Classes that implement `compare(_:) -> NSComparisonResult` automatically import as `Comparable`.
624624

625-
* [SE-0040][]
625+
* [SE-0040][]
626626

627627
Attributes change from using `=` in parameters lists
628628
to using `:`, aligning with function call syntax.
629-
629+
630630
```
631631
// before
632632
@available(*, unavailable, renamed="MyRenamedProtocol")
633-
633+
634634
// after
635635
@available(*, unavailable, renamed: "MyRenamedProtocol")
636636
```
637637

638-
* [SE-0048][]
639-
638+
* [SE-0048][]
639+
640640
Generic typealiases are now supported. For example:
641641

642642
```swift
@@ -645,10 +645,10 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
645645
typealias MatchingTriple<T> = (T, T, T)
646646
typealias BackwardTriple<T1, T2, T3> = (T3, T2, T1)
647647
```
648-
648+
649649
etc.
650650

651-
* [SE-0049][]
651+
* [SE-0049][]
652652

653653
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:
654654

@@ -659,7 +659,7 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
659659
}
660660
```
661661

662-
* [SE-0034][]
662+
* [SE-0034][]
663663

664664
The `#line` directive (which resets the logical
665665
source location for diagnostics and debug information) is renamed to `#sourceLocation`.
@@ -695,7 +695,7 @@ public func project(function f: FunctionType) -> (p0: CGPoint, p1: CGPoint) -> (
695695
}
696696
}
697697
```
698-
698+
699699
* Throwing closure arguments of a rethrowing function may now be optional. For example:
700700

701701
```swift

0 commit comments

Comments
 (0)