[swift-evolution] [Proposal draft] Enhanced floating-point protocols
Brent Royal-Gordon
brent at architechies.com
Fri Apr 15 18:38:21 CDT 2016
Oh, a couple more things I just thought of:
> public protocol Arithmetic: Equatable, IntegerLiteralConvertible {
If your goals include supporting complex numbers, how is IntegerLiteralConvertible going to fit in there?
> /// Initialize to zero
> init()
0 is valuable as the additive identity. Should there also be a way to get 1, the multiplicative identity? If you need both, should these be static properties instead of initializers?
--
Brent Royal-Gordon
Architechies
More information about the swift-evolution
mailing list