[swift-evolution] Expanded support for numeric types in stdlib?
austinzheng at gmail.com
Thu Dec 3 15:14:33 CST 2015
There are quite a few programming languages that provide support for
numeric types apart from the customary floating-point and fixed-width
integer types. Prominent examples of additional numeric types include
rational numbers, arbitrary-width integer types, and fixed-point numbers.
Many of these numeric types are applicable to a wide variety of problem
Swift seems like it would be a good fit for stdlib implementation of some
of these numeric types. Structs and value semantics, literal
initialization, and operator overloading would allow such types to be
treated as first-class citizens. Is the community amenable to such a
proposal, which would entail the data structures themselves, arithmetic
operations, and interoperation between different numeric types to form a
numerical tower of sorts?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution