<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 26, 2017, at 6:36 PM, Xiaodi Wu via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">On Wed, Apr 26, 2017 at 4:06 PM, Howard Lovatt via swift-evolution<span class="Apple-converted-space">&nbsp;</span><span dir="ltr" class="">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div dir="auto" class=""><div class=""><span class=""><p style="margin: 15px 0px;" class=""><span style="background-color: rgba(255, 255, 255, 0);" class="">review of SE-0173 "Add MutableCollection.swap(_:with:<wbr class="">)"&nbsp;</span></p></span><ul style="margin: 15px 0px; padding-left: 30px;" class=""><li style="margin: 0px;" class=""><span style="background-color: rgba(255, 255, 255, 0);" class="">What is your evaluation of the proposal?</span></li></ul><div class="">Good idea. Reads better than current global swap.&nbsp;</div><span class=""><ul style="margin: 15px 0px; padding-left: 30px;" class=""><li style="margin: 0px;" class=""><span style="background-color: rgba(255, 255, 255, 0);" class="">Is the problem being addressed significant enough to warrant a change to Swift?</span></li></ul></span><div class="">Probably; It will become significant once control over ARC added, though not needed just yet.&nbsp;</div><span class=""><ul style="margin: 15px 0px; padding-left: 30px;" class=""><li style="margin: 0px;" class=""><span style="background-color: rgba(255, 255, 255, 0);" class="">Does this proposal fit well with the feel and direction of Swift?</span></li></ul></span><div class="">Yes. The global functions do not sit well with Swift. Methods read much better. Could just eliminate current swap and not replace it though. You can write `(a[i], a[j]) =<span class="Apple-converted-space">&nbsp;</span><span style="background-color: rgba(255, 255, 255, 0);" class="">(a[j], a[i])` instead.&nbsp;</span></div></div></div></blockquote><div class=""><br class=""></div><div class="">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.</div></div></div></div></div></blockquote><div><br class=""></div><div>There are also performance — and, under ownership, eventually semantic — benefits to using swap over the tuple-assignment idiom.</div></div><div><br class=""></div><div>John.<br class=""><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div dir="auto" class=""><div class=""><span class=""><ul style="margin: 15px 0px; padding-left: 30px;" class=""><li style="margin: 0px;" class=""><span style="background-color: rgba(255, 255, 255, 0);" class="">If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?</span></li></ul></span><div class="">Yes. People write similar functions in Java, though not in standard library.&nbsp;</div><span class=""><ul style="margin: 15px 0px; padding-left: 30px;" class=""><li style="margin: 0px;" class=""><span style="background-color: rgba(255, 255, 255, 0);" class="">How much effort did you put into your review? A glance, a quick reading, or an in-depth study?</span></li></ul></span><p style="margin: 15px 0px;" class="">Quick read</p><br class="">-- Howard.&nbsp;</div><span class=""><div class=""><br class="">On 26 Apr 2017, at 4:32 am, Ted Kremenek &lt;<a href="mailto:kremenek@apple.com" target="_blank" class="">kremenek@apple.com</a>&gt; wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><p style="margin: 15px 0px; font-family: -apple-system-body, Helvetica, arial, sans-serif; background-color: rgb(255, 255, 255);" class="">review of SE-0173 "Add MutableCollection.swap(_:with:<wbr class="">)" begins now and runs<span class="Apple-converted-space">&nbsp;</span><span class="">through&nbsp;</span><strong class=""><span class="">April 28, 2017</span></strong>.</p><p style="margin: 15px 0px; font-family: -apple-system-body, Helvetica, arial, sans-serif; background-color: rgb(255, 255, 255);" class="">The proposal is available here:</p><p style="margin: 15px 0px; font-family: -apple-system-body, Helvetica, arial, sans-serif; background-color: rgb(255, 255, 255);" class=""><a href="https://github.com/apple/swift-evolution/blob/master/proposals/0173-swap-indices.md" target="_blank" style="color: rgb(65, 131, 196);" class="">https://github.com/apple/<wbr class="">swift-evolution/blob/master/<wbr class="">proposals/0173-swap-indices.md</a></p><p style="margin: 15px 0px; font-family: -apple-system-body, Helvetica, arial, sans-serif; background-color: rgb(255, 255, 255);" class="">Reviews are an important part of the Swift evolution process. All reviews should be sent to the swift-evolution mailing list at:</p><p style="margin: 15px 0px; font-family: -apple-system-body, Helvetica, arial, sans-serif; background-color: rgb(255, 255, 255);" class=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank" class="">https://lists.swift.org/<wbr class="">mailman/listinfo/swift-<wbr class="">evolution</a></p><p style="margin: 15px 0px; font-family: -apple-system-body, Helvetica, arial, sans-serif; background-color: rgb(255, 255, 255);" class="">or, if you would like to keep your feedback private, directly to the review manager. When replying, please try to keep the proposal link at the top of the message:</p><blockquote style="margin: 15px 0px; border-left-width: 4px; border-left-style: solid; border-left-color: rgb(221, 221, 221); padding: 0px 15px; color: rgb(119, 119, 119); font-family: -apple-system-body, Helvetica, arial, sans-serif; background-color: rgb(255, 255, 255);" class=""><h3 id="m_-2346643306927044233toc_0" style="margin: 0px 0px 10px; padding: 0px; font-size: 18px;" class="">Proposal link:</h3><blockquote style="margin: 15px 0px 0px; border-left-width: 4px; border-left-style: solid; border-left-color: rgb(221, 221, 221); padding: 0px 15px;" class=""><p style="margin: 0px 0px 15px;" class=""><a href="https://github.com/apple/swift-evolution/blob/master/proposals/0173-swap-indices.md" target="_blank" class="">https://github.com/apple/<wbr class="">swift-evolution/blob/master/<wbr class="">proposals/0173-swap-indices.md</a></p><h3 id="m_-2346643306927044233toc_1" style="margin: 20px 0px 10px; padding: 0px; font-size: 18px;" class="">Reply text</h3><p style="margin: 15px 0px 0px;" class="">Other replies</p></blockquote></blockquote><h3 id="m_-2346643306927044233toc_2" style="margin: 20px 0px 10px; padding: 0px; font-size: 18px; font-family: -apple-system-body, Helvetica, arial, sans-serif; background-color: rgb(255, 255, 255);" class="">What goes into a review?</h3><p style="margin: 15px 0px; font-family: -apple-system-body, Helvetica, arial, sans-serif; background-color: rgb(255, 255, 255);" class="">The goal of the review process is to improve the proposal under review through constructive criticism and, eventually, determine the direction of Swift. When writing your review, here are some questions you might want to answer in your review:</p><ul style="margin: 15px 0px; padding-left: 30px; font-family: -apple-system-body, Helvetica, arial, sans-serif; background-color: rgb(255, 255, 255);" class=""><li style="margin: 0px;" class="">What is your evaluation of the proposal?</li><li style="margin: 0px;" class="">Is the problem being addressed significant enough to warrant a change to Swift?</li><li style="margin: 0px;" class="">Does this proposal fit well with the feel and direction of Swift?</li><li style="margin: 0px;" class="">If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?</li><li style="margin: 0px;" class="">How much effort did you put into your review? A glance, a quick reading, or an in-depth study?</li></ul><p style="margin: 15px 0px; font-family: -apple-system-body, Helvetica, arial, sans-serif; background-color: rgb(255, 255, 255);" class="">M</p></div></blockquote></span></div><br class="">______________________________<wbr class="">_________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank" class="">https://lists.swift.org/<wbr class="">mailman/listinfo/swift-<wbr class="">evolution</a><br class=""><br class=""></blockquote></div><br class=""></div></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">swift-evolution mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:swift-evolution@swift.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">swift-evolution@swift.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a></div></blockquote></div><br class=""></body></html>