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

Xiaodi Wu xiaodi.wu at gmail.com
Thu Feb 11 13:23:08 CST 2016


I agree strongly with Craig that algebraic terms all strongly imply
that the operation is not in-place. Reductio ad absurdum: I don't
think very many people could stomach sin(x) being mutating.


On Thu, Feb 11, 2016 at 1:19 PM, Jacob Bandes-Storch via
swift-evolution <swift-evolution at swift.org> wrote:
> On Thu, Feb 11, 2016 at 11:09 AM, Erica Sadun via swift-evolution
> <swift-evolution at swift.org> wrote:
>>
>> Non-Mutating, returning new value: unioned(with), intersected(with),
>> exclusiveOred(with)
>>
>> Reasoning:
>>
>> * I think the -ing endings sound unnatural, stilted, and unmathematical.
>> They make me wince.
>
>
> So do the -ed versions, IMO. That's why -InPlace is such a convenient
> suffix.
>
> Jacob
>
> _______________________________________________
> 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