Skip to content

Commit 835b880

Browse files
author
Max Moiseev
committedMar 8, 2017
Merge branch 'master' into new-integer-protocols
2 parents 494acaa + 81ed11c commit 835b880

File tree

1,693 files changed

+79221
-28389
lines changed

Some content is hidden

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

1,693 files changed

+79221
-28389
lines changed
 

Diff for: ‎.pep8

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[flake8]
2-
filename = *.py,80+-check,backtrace-check,Benchmark_Driver,Benchmark_DTrace.in,Benchmark_GuardMalloc.in,Benchmark_RuntimeLeaksRunner.in,build-script,check-incremental,clang++,coverage-build-db,coverage-generate-data,coverage-query-db,coverage-touch-tests,gyb,ld,line-directive,mock-distcc,ns-html2rst,PathSanitizingFileCheck,recursive-lipo,rth,run-test,scale-test,submit-benchmark-results,update-checkout,viewcfg,symbolicate-linux-fatal
2+
filename = *.py,80+-check,backtrace-check,Benchmark_Driver,Benchmark_DTrace.in,Benchmark_GuardMalloc.in,Benchmark_RuntimeLeaksRunner.in,build-script,check-incremental,clang++,coverage-build-db,coverage-generate-data,coverage-query-db,coverage-touch-tests,gyb,ld,line-directive,mock-distcc,ns-html2rst,PathSanitizingFileCheck,python-lint,recursive-lipo,round-trip-syntax-test,rth,run-test,scale-test,submit-benchmark-results,update-checkout,viewcfg,symbolicate-linux-fatal

Diff for: ‎CHANGELOG.md

+33-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CHANGELOG
66

77
| Contents |
88
| :--------------------- |
9+
| [Swift 4.0](#swift-40) |
910
| [Swift 3.1](#swift-31) |
1011
| [Swift 3.0](#swift-30) |
1112
| [Swift 2.2](#swift-22) |
@@ -17,11 +18,33 @@ CHANGELOG
1718

1819
</details>
1920

21+
Swift 4.0
22+
---------
23+
24+
* [SE-0148][]:
25+
26+
Subscript declarations can now be defined to have generic parameter lists.
27+
Example:
28+
29+
```
30+
extension JSON {
31+
subscript<T>(key: String) -> T?
32+
where T : JSONConvertible {
33+
// ...
34+
}
35+
}
36+
```
37+
38+
* [SE-0110][]:
39+
40+
In Swift 4 mode, Swift's type system properly distinguishes between functions that
41+
take one tuple argument, and functions that take multiple arguments.
42+
2043
* More types of C macros which define integer constants are supported by the
2144
importer. Specifically the `+, -, *, /, ^, >>, ==, <, <=, >, >=` operators
22-
are now recognised, and the previously-supported `<<, &&, ||, &, |`
45+
are now recognized, and the previously-supported `<<, &&, ||, &, |`
2346
operators always look through importable macros on each side of the operator.
24-
Logical AND and OR macros (`&&` and `||`) are now imported as Boolean
47+
Logical AND and OR macros (`&&` and `||`) are now imported as Boolean
2548
constants, rather than integers of value 0 or 1.
2649

2750
```c
@@ -6408,3 +6431,11 @@ Swift 1.0
64086431
[SE-0145]: <https://github.com/apple/swift-evolution/blob/master/proposals/0145-package-manager-version-pinning.md>
64096432
[SE-0146]: <https://github.com/apple/swift-evolution/blob/master/proposals/0146-package-manager-product-definitions.md>
64106433
[SE-0147]: <https://github.com/apple/swift-evolution/blob/master/proposals/0147-move-unsafe-initialize-from.md>
6434+
[SE-0148]: <https://github.com/apple/swift-evolution/blob/master/proposals/0148-generic-subscripts.md>
6435+
[SE-0149]: <https://github.com/apple/swift-evolution/blob/master/proposals/0149-package-manager-top-of-tree.md>
6436+
[SE-0150]: <https://github.com/apple/swift-evolution/blob/master/proposals/0150-package-manager-branch-support.md>
6437+
[SE-0151]: <https://github.com/apple/swift-evolution/blob/master/proposals/0151-package-manager-swift-language-compatibility-version.md>
6438+
[SE-0152]: <https://github.com/apple/swift-evolution/blob/master/proposals/0152-package-manager-tools-version.md>
6439+
[SE-0153]: <https://github.com/apple/swift-evolution/blob/master/proposals/0153-compensate-for-the-inconsistency-of-nscopyings-behaviour.md>
6440+
[SE-0154]: <https://github.com/apple/swift-evolution/blob/master/proposals/0154-dictionary-key-and-value-collections.md>
6441+
[SE-0155]: <https://github.com/apple/swift-evolution/blob/master/proposals/0155-normalize-enum-case-representation.md>

0 commit comments

Comments
 (0)