[swift-evolution] [Re-Review] SE-0104: Protocol-oriented integers

Ben Rimmington me at benrimmington.com
Sat Feb 25 09:06:03 CST 2017


<https://github.com/apple/swift-evolution/blob/master/proposals/0104-improved-integers.md>

> On 24 Feb 2017, at 02:05, Ben Cohen wrote:
> 
> Regarding the “Number” protocol: it was felt this is likely to cause confusion with NSNumber, given the NS-prefix-dropping versions of other Foundation types indicate a value-typed concrete type equivalent, which this won’t be. The recommendation is to use “Numeric" instead.

Does the `Error` protocol cause confusion with the `NSError` class?

I think `Number` is better than `Numeric`, because it is consistent with `SignedNumber`.


More information about the swift-evolution mailing list