> On Dec 19, 2015, at 4:10 PM, Erica Sadun <er...@ericasadun.com> 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. -Joe
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution