> On Dec 21, 2015, at 12:25 PM, Joe Groff via swift-evolution 
> <[email protected]> wrote:
> 
> 
>> On Dec 19, 2015, at 4:10 PM, Erica Sadun <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> What would the ramifications of the following be? Each addresses the 
>> "confusable with labeling" issue but preserve the inout keyword.
>> 
>> func foo(x: inout Int)
>> func foo(x: @inout(Int))
>> func foo(x: @inout Int)
>> 
>> Is there an underlying reason that parameter modification should live on the 
>> name side rather than the type side of the colon? They aren't really 
>> modifying the name
>> 
>> -- Erica, inexperienced with Rust
> 
> Putting `inout` after the colon feels good to me. Like Jordan said, it meshes 
> better with the type syntax, (inout Int) -> (), too.
> 

+1.  I like it.

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

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

Reply via email to