Skip to content

Commit

Permalink
tweaks to the proposals.
Browse files Browse the repository at this point in the history
  • Loading branch information
lattner committed Mar 11, 2016
1 parent 03eec51 commit ad0b7bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion proposals/0048-generic-typealias.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generic Type Aliases

* Proposal: [SE-0048: Generic Type Aliases](proposals/0048-generic-typealias.md)
* Proposal: [SE-0048: Generic Type Aliases](0048-generic-typealias.md)
* Author: [Chris Lattner](https://github.com/lattner)
* Status: **To be scheduled**
* Review manager: [Doug Gregor](https://github.com/DougGregor)
Expand Down
9 changes: 5 additions & 4 deletions proposals/0049-noescape-autoclosure-type-attrs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Move @noescape and @autoclosure to be type attributes

* Proposal: [SE-0049: Move @noescape and @autoclosure to be type attributes](proposals/0049-noescape-autoclosure-type-attrs.md)
* Proposal: [SE-0049: Move @noescape and @autoclosure to be type attributes](0049-noescape-autoclosure-type-attrs.md)
* Author: [Chris Lattner](https://github.com/lattner)
* Status: **To be scheduled**
* Review manager: [Doug Gregor](https://github.com/DougGregor)
Expand All @@ -10,14 +10,15 @@
This proposal suggests moving the existing `@noescape` and `@autoclosure`
attributes from being declaration attributes on a parameter to being type
attributes. This improves consistency and reduces redundancy within the
language, e.g. aligning with the previous Swift 3 decision to move "inout",
and making declaration and type syntax more consistent.
language, e.g. aligning with [SE-0031](0031-adjusting-inout-declarations.md),
which moved `inout`, making declaration and type syntax more consistent.

Swift-evolution thread: [here](https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160307/012292.html)

## Motivation

Chris Eidhof noticed an emergent result of removing our currying syntax: it
[Chris Eidhof](https://github.com/chriseidhof)
noticed an emergent result of removing our currying syntax: it
broke some useful code using `@noescape`, because we only allowed it on
parameter declarations, not on general things-of-function-type. This meant that
manually curried code like this:
Expand Down

0 comments on commit ad0b7bd

Please sign in to comment.