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

Craig Cruden ccruden at novafore.com
Thu Feb 11 13:19:10 CST 2016


I was trying to think of a non mathematical term for intersect in a mutating manner….

but that one is hard…. the only thing that came to mind was “overlap” but I don’t think anyone would find it (maybe not a bad thing :p )


> On 2016-02-12, at 2:05:59, Craig Cruden <ccruden at novafore.com> wrote:
> 
> I was thinking of maybe:
> 
> x.remove(x) for subtract (java mutable remove).  
> 
>> On 2016-02-12, at 2:00:41, Thorsten Seitz <tseitz42 at icloud.com <mailto:tseitz42 at icloud.com>> wrote:
>> 
>> Good idea!
>> 
>> -Thorsten
>> 
>> 
>>> Am 11.02.2016 um 19:52 schrieb Craig Cruden <ccruden at novafore.com <mailto:ccruden at novafore.com>>:
>>> 
>>> or x.merge(x) for mutating union.
>>> 
>>>> On 2016-02-12, at 1:49:23, Thorsten Seitz via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>>> 
>>>> I’d like to repeat my suggestion:
>>>> 
>>>> mutating (verbs):
>>>> x.intersect(x)
>>>> x.add(x)
>>>> x.subtract(x)
>>> 
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160212/449f2088/attachment.html>


More information about the swift-evolution mailing list