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

Dave Abrahams dabrahams at apple.com
Thu Apr 7 15:36:38 CDT 2016

on Mon Apr 04 2016, Brent Royal-Gordon <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. 

It's at least very explicit.  We did consider that, and chose “form” as
a more reasonable convention.  However, we weren't thinking of the
“from” problem.  I prefer “replaceWith” over “become” for some reason I
can't identify.

> 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.


More information about the swift-evolution mailing list