Skip to content

Commit 447e955

Browse files
austinzhenglattner
authored andcommitted
[Gardening] Minor changes (#355)
- Moved SE-0048 into the 'implemented for Swift 3' section - Added an entry to the 'commonly rejected' list regarding `|`-style type constraints, per SE-0095's rationale
1 parent b01ee4d commit 447e955

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ below:
121121
* [SE-0043: Declare variables in 'case' labels with multiple patterns](proposals/0043-declare-variables-in-case-labels-with-multiple-patterns.md)
122122
* [SE-0044: Import as Member](proposals/0044-import-as-member.md)
123123
* [SE-0046: Establish consistent label behavior across all parameters including first labels](proposals/0046-first-label.md)
124+
* [SE-0048: Generic Type Aliases](proposals/0048-generic-typealias.md)
124125
* [SE-0049: Move @noescape and @autoclosure to be type attributes](proposals/0049-noescape-autoclosure-type-attrs.md)
125126
* [SE-0053: Remove explicit use of `let` from Function Parameters](proposals/0053-remove-let-from-function-parameters.md)
126127
* [SE-0054: Abolish `ImplicitlyUnwrappedOptional` type](proposals/0054-abolish-iuo.md)
@@ -152,7 +153,6 @@ subsequent release.
152153
* [SE-0042: Flattening the function type of unapplied method references](proposals/0042-flatten-method-types.md)
153154
* [SE-0045: Add scan, prefix(while:), drop(while:), and iterate to the stdlib](proposals/0045-scan-takewhile-dropwhile.md)
154155
* [SE-0047: Defaulting non-Void functions so they warn on unused results](proposals/0047-nonvoid-warn.md)
155-
* [SE-0048: Generic Type Aliases](proposals/0048-generic-typealias.md)
156156
* [SE-0052: Change IteratorType post-nil guarantee](proposals/0052-iterator-post-nil-guarantee.md)
157157
* [SE-0060: Enforcing order of defaulted parameters](proposals/0060-defaulted-parameter-order.md)
158158
* [SE-0063: SwiftPM System Module Search Paths](proposals/0063-swiftpm-system-module-search-paths.md)

commonly_proposed.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Several of the discussions below refer to "C Family" languages. This is intende
2828

2929
* [Use Garbage Collection instead of ARC](https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160208/009403.html): Mark and sweep garbage collection is a well known technique used in many popular and widely used languages (e.g., Java and JavaScript) and it has the advantage of automatically collecting reference cycles that ARC requires the programmer to reason about. That said, garbage collection has a [large number of disadvantages](https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160208/009422.html) and using it would prevent Swift from successfully targeting a number of systems programming domains. For example, real time systems (video or audio processing), deeply embedded controllers, and most kernels find GC to be generally unsuitable. Further, GC is only efficient when given 3–4× more memory to work with than the process is using at any time, and this tradeoff is not acceptable for Swift.
3030

31+
* [Disjunctions (logical ORs) in type constraints](https://lists.swift.org/pipermail/swift-evolution-announce/2016-June/000182.html): These include anonymous union-like types (e.g. `(Int | String)` for a type that can be inhabited by either an integer or a string). "[This type of constraint is] something that the type system cannot and should not support."
32+
3133
Here are some other less-commonly proposed changes that have also been rejected:
3234

3335
* [Remove `;` Semicolons](https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151214/002421.html): Semicolons within a line are an intentional expressivity feature. Semicolons at the end of the line should be handled by a "linter", not by the compiler.

0 commit comments

Comments
 (0)