<div>Free functions generally work with autocomplete, however they have some disadvantages:</div><div><br></div><div>  1. You can&#39;t easily find them when browsing with something like SwiftDoc or looking at headers via control-click in Xcode</div><div>  2. Some of the compiler writers have commented that free functions slow the compiler down, and presumable therefore Xcode</div><div><br><div class="gmail_quote"><div>On Thu, 23 Feb 2017 at 6:02 am, Stephen Canon &lt;<a href="mailto:scanon@apple.com">scanon@apple.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg"><br class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg">On Feb 22, 2017, at 10:48 AM, David Sweeris via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><br class="m_-8462600269368897905Apple-interchange-newline gmail_msg"><div class="gmail_msg"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important" class="gmail_msg">Eh, maybe… At least in Xcode, autocomplete works for free functions. I was just thinking about how people who already know about “signum&quot; 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?</span></div></blockquote></div><br class="gmail_msg"></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg">Honestly, as a mathematician I think either one is fine.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">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.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">– Steve</div></div></blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature">-- Howard.</div>