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


(Chris Lattner) #1

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