[swift-evolution] [Accepted] SE-0081: Move where clause to end of declaration

Chris Lattner clattner at apple.com
Thu May 19 00:04:43 CDT 2016


Proposal link: https://github.com/apple/swift-evolution/blob/master/proposals/0081-move-where-expression.md

Hello Swift Community,

The review of SE-0081: "Move where clause to end of declaration" ran from May 10...16, 2016. The proposal is *accepted* for Swift 3.

The feedback on this proposal was strongly positive from the community and core team.  Some concerns were raised (e.g. about possible interaction with the future "generalized existentials" feature) but further examination turned up that they were at issue regardless of whether this feature is accepted.  The core team agrees that this syntactic structure allows a more natural and beautiful way to structure complex generic constraints, and that “where” clauses should be considered secondary to the primary signature of the declaration (e.g. func, class, etc) in question.

Thank you to David Hart, Robert Widmann, and Pyry Jahkola for proposing this!  I filed SR-1561 to track implementation of this feature.

-Chris Lattner
Review Manager



More information about the swift-evolution mailing list