> On Feb 18, 2017, at 12:02 PM, Karl Wagner via swift-evolution 
> <swift-evolution@swift.org> wrote:
> 
> I assume the “SignedNumber” protocol is the same as the existing one in the 
> standard library. That is to say, Strideable.Stride will now conform to 
> Number and have operators.
SignedNumber will *not* be the same. It is just the same name.
Stride will have operators, yes. Strideable in general will not, unless it’s a 
_Pointer. (you can find the current implementation prototype here 
<https://github.com/apple/swift/blob/new-integer-protocols/stdlib/public/core/Stride.swift.gyb>).
> 
> Also minor nitpick, would it be too onerous to require Number.Magnitude to be 
> Comparable? Currently it’s only Equatable and ExpressibleByIntegerLiteral.
Magnitude is supposed to conform to Arithmetic (or Number, or whatever it ends 
up being called), but the recursive constraints feature is missing, therefore 
we constrained it with the protocols that Arithmetic itself refines.

Why would you want Comparable?

Max

_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to