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

Stephen Canon scanon at apple.com
Wed Feb 22 13:02:07 CST 2017

> On Feb 22, 2017, at 10:48 AM, David Sweeris via swift-evolution <swift-evolution at swift.org> wrote:
> Eh, maybe… At least in Xcode, autocomplete works for free functions. I was just thinking about how people who already know about “signum" would expect it to work. Like if a mathematician sits down to write something in Swift, are they more likely to try “signum(x)” or “x.signum” first?

Honestly, as a mathematician I think either one is fine.

We like free functions in mathematics.  x.signum is (slightly?) Swiftier. Six of one, half dozen of the other, either one will be completely satisfactory.

– Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170222/366154ef/attachment.html>

More information about the swift-evolution mailing list