<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 11, 2016 at 4:27 PM, Rob Mayoff via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div class="gmail_extra"><span><div class="gmail_quote">On Thu, Feb 11, 2016 at 12:54 PM, Jim Hillhouse via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div>The present participle of &#39;union&#39; is technically speaking, &#39;unioning&#39;. But it is not widely used. In fact, in both Pages and Word, &#39;unioning&#39; is flagged as a misspelling of &#39;union&#39;.<div></div></div></blockquote></div><div class="gmail_extra"><br></div></span>Outside of programming, &quot;union&quot; is a noun, not a verb, and &quot;unite&quot; is already a perfectly good verb that means &quot;create the union of&quot;.  So why not</div><div class="gmail_extra"><br></div><div class="gmail_extra">    func union(with other: Self) -&gt; Self</div><div class="gmail_extra">    func unite(with other: Self)</div><div class="gmail_extra"><br></div></div></blockquote><div> </div><div>My biggest problem with this diff is the different treatment of &quot;union&quot; and &quot;intersection&quot;... it is confusing that one is mutating and the other is non-mutating. They are both the same part of speech and both the term of art, so they should both have the same mutability implications.</div><div><br></div><div>I&#39;d vote either of the following (leaning toward the first group because I think the term of art implies non-mutating):</div><div><br></div><div>func union(other: Self) -&gt; Self</div><div>func unite(other: Self)</div><div>func intersection(other: Self) -&gt; Self</div><div>func intersect(other: Self)</div><div><br></div><div>func uniting(other: Self) -&gt; Self</div><div>func union(other: Self)</div><div>func intersecting(other: Self) -&gt; Self</div><div>func intersection(other: Self)</div><div><br></div><div>unite and uniting are still reasonably close to union (exactly the same for the first 3 characters which should help with autocomplete discoverability).</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div class="gmail_extra"></div></div>
<br>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank" rel="noreferrer">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br></blockquote></div><br></div></div>