<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On Dec 3, 2015, at 1:14 PM, Austin Zheng &lt;<a href="mailto:austinzheng@gmail.com" class="">austinzheng@gmail.com</a>&gt; wrote:<div><blockquote type="cite" class=""><div class=""><div dir="ltr" class="">Hi all,<div class=""><br class=""></div><div class="">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.</div></div></div></blockquote><div><br class=""></div><div>Hi Austin, great to hear from you:</div><div><br class=""></div><div>It would be great to consider this. &nbsp;We’ve specifically recently discussed BigInt support, for example. &nbsp;</div><div><br class=""></div><div>One of the things that we’d like to see for Swift 3 is a revised set of numerics protocols, to make it possible to write generic numeric algorithms. &nbsp;One concern I have with this is that abstracting over (e.g.) IEEE and rational numbers may overly complicate the protocols necessary to get simple things done.</div><div><br class=""></div><div>That said, I’m not an expert on this area, so I’m cc’ing some people who are :-)</div><div><br class=""></div><div>-Chris</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">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?</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Austin</div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=RC5Cq0zAxCHc1sM9Uy3-2BojrrUAw-2F96zH69NULNHPvCs7EcNMwdAZzHLn6clPKRsXeGT-2BxpR5aabEjs2HCJ0O50v4V1YofqsqZ6v31GXag7C0uG8arCLS66rLCsEoe2HhQZLveX2DjmzhYOTzbhr5uluCsztx9q0YaOwuwo2OKgASimRdFRJGu5UqnU7aq4qTviZASlo1YNc1sEenLs-2FCfi6gQh5-2FYOZtS54gvU1odzY-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></body></html>