<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="">Yes<br class=""><div><blockquote type="cite" class=""><div class="">On Dec 6, 2015, at 6:10 PM, Dmitri Gribenko &lt;<a href="mailto:gribozavr@gmail.com" class="">gribozavr@gmail.com</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: 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">On Sun, Dec 6, 2015 at 3:03 PM, Chris Lattner 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=""><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 style="word-wrap: break-word;" class=""><span class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Dec 6, 2015, at 6:40 AM, Daniel Steinberg via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class=""><div class=""><div style="word-wrap: break-word;" class="">I love that the team has released API Design Guidelines and find them very helpful. One piece of advice, however, seems to be at odds with current Standard Library practice.<div class=""><br class=""></div><div class="">Currently the methods sort() and sortInPlace() are the non-mutating and mutating versions of sorting a collection. Similarly, there are pairs of methods in Set named union() and unionInPlace(), intersect() and intersectInPlace() and so on.</div></div></div></blockquote><br class=""></div></span><div class="">Hi Daniel,</div><div class=""><br class=""></div><div class="">This is a known issue, and it is because we want to keep Swift 2.2 reasonable source compatible with Swift 2.&nbsp; The changes to the standard library will land after Swift 2.2 branches for its release in the spring. &nbsp;</div><div class=""><br class=""></div><div class="">If you’re interested in more details on this effort, check out this blog post:</div><div class=""><a href="https://swift.org/blog/swift-3-api-design/" target="_blank" class="">https://swift.org/blog/swift-3-api-design/</a></div><div class=""><br class=""></div><div class="">It includes a link to the diff-in-progress for the standard library.</div><div class=""></div></div></blockquote></div><div class="gmail_extra"><br class=""></div>Hi Chris,</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">I think Daniel is not highlighting the inconsistency, but saying that he likes ~InPlace better:</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">On Dec 6, 2015, at 6:40 AM, Daniel Steinberg via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>&gt; wrote:</div><div class="gmail_extra">&gt;&nbsp;<span style="font-size: 12.8px;" class="">Previously the sort methods were named sort() and sorted(). I never could remember which is which.</span></div><div class="gmail_extra"><span style="font-size: 12.8px;" class=""><br class=""></span></div><div class="gmail_extra"><span style="font-size: 12.8px;" class="">Dmitri<br class=""></span><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space">&nbsp;</span><br class=""><div class="gmail_signature">main(i,j){for(i=2;;i++){for(j=2;j&lt;i;j++){if(!(i%j)){j=0;break;}}if<br class="">(j){printf("%d\n",i);}}} /*Dmitri Gribenko &lt;<a href="mailto:gribozavr@gmail.com" target="_blank" class="">gribozavr@gmail.com</a>&gt;*/</div></div></div></div></blockquote></div><br class=""></body></html>