[swift-evolution] [swift-evolution-announce] [Review] SE-0104: Protocol-oriented integers

Jordan Rose jordan_rose at apple.com
Thu Jun 23 17:21:38 CDT 2016


> On Jun 23, 2016, at 15:19, Patrick Pijnappel <patrickpijnappel at gmail.com> wrote:
> 
> - I remain unconvinced that defining an Arithmetic that includes both exact and floating-point numbers is a good idea. All of the arguments from Swift 1 and 2 about why we didn't include this still seem relevant. To phrase it in generic programming terms, what algorithm would be generic over Arithmetic?
> 
> E.g. generic point/size/rect types.

Um. I get that there are useful algorithms generic over floating-point vectors, and also useful algorithms generic over integer vectors. I’m still not sure what algorithms are generic over floating-point values (of any arity) and integers (of any arity).

Jordan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160623/7b58547b/attachment.html>


More information about the swift-evolution mailing list