[swift-evolution] [swift-users] Replacement for NSNumber?

Joanna Carter joanna at carterconsulting.org.uk
Mon Apr 11 10:55:58 CDT 2016


> It’s inconvenient that structs can’t inherit, and so things like Int and Double aren’t known as numbers. Should there be a Number protocol that encompasses all things number-like?

Taje a look at the IntegerType and FloatingPointType

--
Joanna Carter
Carter Consulting

(de mon iPhone)



More information about the swift-evolution mailing list