Skip to content

Commit 24f3f54

Browse files
committed
Merge branch 'master' into fix/SR-9035
2 parents a1ffae5 + 5f823fb commit 24f3f54

File tree

352 files changed

+36366
-3281
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

352 files changed

+36366
-3281
lines changed

CHANGELOG.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,26 @@ Swift Next
4141
print(s[0])
4242
```
4343

44+
**Add new entries to the top of this section, not here!**
45+
4446
Swift 5.1
4547
---------
4648

47-
* [SE-0256][]:
49+
* [SE-0244][]:
50+
51+
Functions can now hide their concrete return type by declaring what protocols
52+
it conforms to instead of specifying the exact return type:
53+
54+
```
55+
func makeMeACollection() -> some Collection {
56+
return [1, 2, 3]
57+
}
58+
```
59+
60+
Code that calls the function can use the interface of the protocol, but
61+
does not have visibility into the underlying type.
62+
63+
* [SE-0254][]:
4864

4965
Subscripts can now be declared `static` or (inside classes) `class`.
5066

@@ -246,6 +262,8 @@ Swift 5.1
246262
Swift 5.0
247263
---------
248264

265+
### 2019-03-25 (Xcode 10.2)
266+
249267
* [SE-0235][]:
250268

251269
The standard library now contains a `Result` type for manually propagating errors.
@@ -506,8 +524,6 @@ Swift 5.0
506524
}
507525
```
508526

509-
**Add new entries to the top of this section, not here!**
510-
511527
Swift 4.2
512528
---------
513529

@@ -7649,7 +7665,10 @@ Swift 1.0
76497665
[SE-0230]: <https://github.com/apple/swift-evolution/blob/master/proposals/0230-flatten-optional-try.md>
76507666
[SE-0235]: <https://github.com/apple/swift-evolution/blob/master/proposals/0235-add-result.md>
76517667
[SE-0242]: <https://github.com/apple/swift-evolution/blob/master/proposals/0242-default-values-memberwise.md>
7668+
[SE-0244]: <https://github.com/apple/swift-evolution/blob/master/proposals/0244-opaque-result-types.md>
76527669
[SE-0245]: <https://github.com/apple/swift-evolution/blob/master/proposals/0245-array-uninitialized-initializer.md>
7670+
[SE-0252]: <https://github.com/apple/swift-evolution/blob/master/proposals/0252-keypath-dynamic-member-lookup.md>
7671+
[SE-0254]: <https://github.com/apple/swift-evolution/blob/master/proposals/0254-static-subscripts.md>
76537672

76547673
[SR-106]: <https://bugs.swift.org/browse/SR-106>
76557674
[SR-419]: <https://bugs.swift.org/browse/SR-419>
@@ -7668,6 +7687,7 @@ Swift 1.0
76687687
[SR-4248]: <https://bugs.swift.org/browse/SR-4248>
76697688
[SR-5581]: <https://bugs.swift.org/browse/SR-5581>
76707689
[SR-5719]: <https://bugs.swift.org/browse/SR-5719>
7690+
[SR-6118]: <https://bugs.swift.org/browse/SR-6118>
76717691
[SR-7139]: <https://bugs.swift.org/browse/SR-7139>
76727692
[SR-7251]: <https://bugs.swift.org/browse/SR-7251>
76737693
[SR-7601]: <https://bugs.swift.org/browse/SR-7601>

benchmark/Naming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ relative comparison across the different axis of variation.
8989

9090
</details><p><!-- spacer --></p></li>
9191
<li>
92-
<strong>Groups and types are <code>UpperCase</code>, methods are
92+
<strong>Groups, variants and types are <code>UpperCase</code>, methods are
9393
<code>lowerCase</code>.</strong>
9494
<details>
9595

0 commit comments

Comments
 (0)