[swift-evolution] [Proposal] Adjusting `inout` Declarations for Type Decoration

Jordan Rose jordan_rose at apple.com
Fri Jan 29 21:35:24 CST 2016


[ Proposal link: https://github.com/apple/swift-evolution/pull/127 <https://github.com/apple/swift-evolution/pull/127> ]

+1. As has been noted elsewhere, inout isn't just part of the parameter (since it appears in function types), and it's not part of the parameter's type (since within the body there's no inout-ness, and you can't put 'inout' in a typealias on its own). To me, that means neither side of the colon is inherently "correct", and therefore I prefer the slight consistency with function types and with call sites, and the removal of the possibility for typos becoming external parameter names.

Jordan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160129/1051dbdb/attachment.html>


More information about the swift-evolution mailing list