[swift-evolution] [Proposal] Adjusting `inout` Declarations for Type Decoration
Joseph at human-friendly.com
Fri Jan 29 15:32:25 CST 2016
> On 29 Jan 2016, at 20:55, Haravikk via swift-evolution <swift-evolution at swift.org> wrote:
> Surely inout isn’t a modifier of the type either, but rather a modifier of the parameter as a whole, not the label specifically. Couldn’t we just allow the label to be omitted for closures such as in your (inout T) -> U example?
It works for me because I think of the mutability of a variable being part of the type of the variable
I do like the proposal although I haven't had cause to make use of inout arguments much recently.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution