Regarding: "Source compatibility is a serious goal now. There's no harm in the current `swap`, and I use it. This is no rationale for breaking existing code."
Swap for arrays will have to go when ARC controls come in. You can't pass two parts of the same array to one function. The relevant bit from the Ownership manifesto is: "Accessing a component of a value type through a subscript is treated as accessing the entire value, and so is considered to overlap any other access to the value." -- Howard. > On 27 Apr 2017, at 8:36 am, Xiaodi Wu <[email protected]> wrote: > > Source compatibility is a serious goal now. There's no harm in the current > `swap`, and I use it. This is no rationale for breaking existing code. _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
