> On Mar 24, 2016, at 7:25 PM, Dave Abrahams via swift-evolution 
> <[email protected]> wrote:
> 
> 
> on Thu Mar 24 2016, Ricardo Parada <[email protected]> wrote:
> 
>> Hi all,
>> 
>> I could get used to the formNoun naming convention for the mutable versions 
>> of the methods. 
>> 
>> I would suggest the following changes:
>> 
>> Remove the parameter label from symmetricDifference() and 
>> formSymmetricDifference() to be consistent with the other methods. 
>> 
>> Consider renaming:
>> subtracting / subtract 
>> 
>> to: 
>> difference / formDifference
>> 
>> in order to keep the API consistent. 
> 
> The problem with “difference” is that it's not symmetrical; you really
> need to do something to clarify which is the minuend and which is the
> subtrahend (yes, I had to look those terms up to write this post!)
> 
> subtract and subtracting make that clear.

Initially, I was 99% happy. My initial reservation had been with 
subtracting/subtract and thought that subtract/formSubtraction might have been 
better. 

But with your clarification (and vocabulary for the day!) subtract and 
subtracting make sense and I’m 100% for the proposed SetAlgebra.
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to