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

David Sweeris davesweeris at mac.com
Wed Feb 22 08:01:25 CST 2017


> On Feb 21, 2017, at 20:46, Xiaodi Wu via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Sign, perhaps, can be thought of as "part of a number," but signum refers to the signum function (http://en.wikipedia.org/wiki/Sign_function) defined as:
> 
> -1 if x < 0
> 0 if x = 0
> 1 if x > 0
> 
> 1 isn't really "part of" 42, for instance, at least not in the sense that 42 and + are "part of" 42.

Should it be a stand-alone function, then?

- Dave Sweeris 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170222/a5c3992b/attachment.html>


More information about the swift-evolution mailing list