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

Steve Canon scanon at apple.com
Wed Jun 22 21:02:12 CDT 2016



Sent from my iPhone

> On Jun 22, 2016, at 9:32 PM, Karl via swift-evolution <swift-evolution at swift.org> wrote:
> 
> I would like ‘floor’ and ‘ceil’ to be part of the standard library (or some equivalent). It annoys me that I have to import Darwin/Glibc to properly convert between standard library types. Would this go with the initialisers from FloatingPoint on Integer, or somewhere on FloatingPoint?

These should simply be added to FloatingPoint.  I'll write a tiny proposal for that.


More information about the swift-evolution mailing list