[swift-evolution] ed/ing, InPlace, Set/SetAlgebra naming resolution
Joe Groff
jgroff at apple.com
Thu Feb 11 12:06:39 CST 2016
> On Feb 11, 2016, at 8:52 AM, Dave Abrahams via swift-evolution <swift-evolution at swift.org> wrote:
>
>
> Hi All,
>
> The API guidelines working group took up the issue of the InPlace suffix
> yesterday, and decided that it was not to be used anywhere in the
> standard library. We are planning to apply the changes shown here
> <https://gist.github.com/dabrahams/d872556291a3cb797bd5> to the API of
> SetAlgebra (and consequently Set) to make it conform to the guidelines
> under development.
>
> Comments welcome as usual,
-/// - `x.intersect(x) == x`
-/// - `x.intersect([]) == []`
-/// - `x.union(x) == x`
-/// - `x.union([]) == x`
+/// - `x.intersection(with: x) == x`
+/// - `x.intersection(with: []) == []`
+/// - `x.unioning(with: x) == x`
+/// - `x.unioning(with: []) == x`
What's with the (with:)? That seems like a pretty needless word. Same with 'of:' and friends.
-Joe
More information about the swift-evolution
mailing list