[swift-evolution] [Review] SE-0059: Update API Naming Guidelines and Rewrite Set APIs Accordingly

Sean Heber sean at fifthace.com
Mon Apr 4 16:07:47 CDT 2016

This has been a very long and complex thread, but have some of these not-technically-mathy word pairs that have nice verb forms been considered:

union -> combine / combining
intersection -> intersect / intersecting
symmetricDifference -> split / splitting


var allowedUsers = Set<User>()

var users = allUsers

let users = allUsers.intersecting(allowedUsers)


> On Apr 4, 2016, at 3:22 PM, Brent Royal-Gordon via swift-evolution <swift-evolution at swift.org> wrote:
>> Indeed, OED points out that modern usage is "chiefly military." Probably an argument against its usage here.
> It seems to me that what you're sort of saying is "replaceWith", but that's kind of a mouthful. A quick thesaurus check suggests that the only decent single-world alternative would be "substitute", but that sounds like a regex operation. I think this is a dead end.
> -- 
> Brent Royal-Gordon
> Architechies
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

More information about the swift-evolution mailing list