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

Dave Abrahams dabrahams at apple.com
Mon Apr 4 17:05:03 CDT 2016


on Mon Apr 04 2016, Sean Heber <swift-evolution at swift.org> wrote:

> 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

Yes, some of them have been considered.

> Example:
>
> var allowedUsers = Set<User>()
> allowedUsers.combine(standardUsers)
> allowedUsers.combine(superUsers)
>
> var users = allUsers
> users.intersect(allowedUsers)
>
> let users = allUsers.intersecting(allowedUsers)
>
> l8r
> Sean
>
>> 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
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-- 
Dave



More information about the swift-evolution mailing list