[swift-evolution] ed/ing, InPlace, Set/SetAlgebra naming resolution

Stephen Canon scanon at apple.com
Thu Feb 11 17:41:14 CST 2016

> On Feb 11, 2016, at 6:24 PM, Brent Royal-Gordon via swift-evolution <swift-evolution at swift.org> wrote:
> 	exclusiveOrInPlace -> differ

While there’s a straightforward line of reasoning that led to this point, anyone who doesn’t know the history will be completely baffled when they come across:


in source.  Even knowing the history, it’s awkward.

This really needs to be either “xor” or “symmetricDifference” to be understandable.  “symmetricDifferenceInPlace” gets to be a bit ridiculous, so I’d prefer “xor[InPlace]”.  “xor” is sufficiently widely-used to qualify as a term-of-art; it’s the easiest-to-read unambiguous name for this operation.

– Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160211/a338985d/attachment.html>

More information about the swift-evolution mailing list