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

Chris Lattner clattner at apple.com
Fri Feb 12 00:30:31 CST 2016


> On Feb 11, 2016, at 10:28 PM, David Owens II via swift-evolution <swift-evolution at swift.org> wrote:
> 
> I don’t know if this has been suggested already… but why not just use the same name and have an `inPlace` parameter with a default value?

inplace, or not, fundamentally affects the operation, including the return type.  On a struct, it is the different between the method being mutating or not.

-Chris


More information about the swift-evolution mailing list