[swift-users] SignedNumberType protocol

Chris Lattner clattner at apple.com
Sat Jun 18 23:44:13 CDT 2016


> On Jun 16, 2016, at 9:36 AM, Aaron Bohannon via swift-users <swift-users at swift.org> wrote:
> 
> Why doesn't the SignedNumberType protocol include more operators?  If a type supports negation, subtraction, and 0, shouldn't we be able to assume that it will support addition, as well?

Hi Aaron,

We expect to revise the integer protocols in Swift 3 along the same lines as the floating point ones.  Stay tuned for a swift-evolution proposal soon.

-Chris



More information about the swift-users mailing list