> On Apr 16, 2016, at 6:12 PM, Howard Lovatt via swift-evolution 
> <[email protected]> wrote:
> 
> For the Arithmetic protocol how about changing it to:
> 
>     protocol Arithmetic {
>         func + (lhs: Self, rhs: Self) -> Self
>         mutating func += (rhs: Self) -> Self
>         ...
>     }
> 
> That way naming issues are largely avoided, except for `mutating func 
> negate()` which has no operator and would therefore have to be a normal, 
> non-operator, func. 
“prefix -" works for negate, at least off the top of my head.

I think.

- Dave Sweeris
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to