[swift-evolution] [swift-evolution-announce] [Re-Review] SE-0104: Protocol-oriented integers
howard.lovatt at gmail.com
Thu Feb 23 16:13:34 CST 2017
Free functions generally work with autocomplete, however they have some
1. You can't easily find them when browsing with something like SwiftDoc
or looking at headers via control-click in Xcode
2. Some of the compiler writers have commented that free functions slow
the compiler down, and presumable therefore Xcode
On Thu, 23 Feb 2017 at 6:02 am, Stephen Canon <scanon at apple.com> wrote:
> 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
> – Steve
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution