<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"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></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"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></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 'union' is technically speaking, 'unioning'. But it is not widely used. In fact, in both Pages and Word, 'unioning' is flagged as a misspelling of 'union'.<div></div></div></blockquote></div><div class="gmail_extra"><br></div></span>Outside of programming, "union" is a noun, not a verb, and "unite" is already a perfectly good verb that means "create the union of". So why not</div><div class="gmail_extra"><br></div><div class="gmail_extra"> func union(with other: Self) -> 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 "union" and "intersection"... 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'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) -> Self</div><div>func unite(other: Self)</div><div>func intersection(other: Self) -> Self</div><div>func intersect(other: Self)</div><div><br></div><div>func uniting(other: Self) -> Self</div><div>func union(other: Self)</div><div>func intersecting(other: Self) -> 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>