[swift-evolution] Expanded support for numeric types in stdlib?

Austin Zheng austinzheng at gmail.com
Thu Dec 3 15:14:33 CST 2015


Hi all,

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
domains.

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?

Best regards,
Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151203/c2861e33/attachment.html>


More information about the swift-evolution mailing list