[swift-evolution] [Proposal] Adjusting `inout` Declarations for Type Decoration
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution