Skip to content

Commit 6f68c4c

Browse files
authored
Merge pull request #33828 from owenv/284-changelog
[Changelog] Add SE-0284
2 parents aef50ab + f234da6 commit 6f68c4c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@ CHANGELOG
2828
Swift Next
2929
----------
3030

31+
* [SE-0284][]:
32+
33+
Functions, subscripts, and initializers may now have more than one variadic parameter, as long as all parameters which follow variadic parameters are labeled. This makes declarations like the following valid:
34+
35+
```swift
36+
func foo(_ a: Int..., b: Double...) { }
37+
38+
struct Bar {
39+
subscript(a: Int..., b b: Int...) -> [Int] { a + b }
40+
41+
init(a: String..., b: Float...) { }
42+
}
43+
```
44+
3145
* [SE-0287][]:
3246

3347
Implicit member expressions now support chains of member accesses, making the following valid:
@@ -8143,6 +8157,7 @@ Swift 1.0
81438157
[SE-0276]: <https://github.com/apple/swift-evolution/blob/master/proposals/0276-multi-pattern-catch-clauses.md>
81448158
[SE-0279]: <https://github.com/apple/swift-evolution/blob/master/proposals/0279-multiple-trailing-closures.md>
81458159
[SE-0280]: <https://github.com/apple/swift-evolution/blob/master/proposals/0280-enum-cases-as-protocol-witnesses.md>
8160+
[SE-0284]: <https://github.com/apple/swift-evolution/blob/master/proposals/0284-multiple-variadic-parameters.md>
81468161
[SE-0286]: <https://github.com/apple/swift-evolution/blob/master/proposals/0286-forward-scan-trailing-closures.md>
81478162
[SE-0287]: <https://github.com/apple/swift-evolution/blob/master/proposals/0287-implicit-member-chains.md>
81488163

0 commit comments

Comments
 (0)