> On Dec 18, 2015, at 5:27 PM, Matthew Johnson <[email protected]> wrote:
> 
> +1.  Can you provide an example showing where you would place it though?

Good question. Three options I see:

- Before the label and binding names, where inout appears today, and where 
other argument modifiers like `@autoclosure` go: func foo(&label x: Int)

which is the minimal change.

- Before the binding name: func foo(label &x: Int)

which is problematic for implicitly-labeled arguments.

- Before the type name: func foo(label x: &Int)

This is the most definition-follows-use-y, but would be inconsistent with other 
argument modifiers.

-Joe
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to