<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>In your defense, if you just say:</div><div id="AppleMailSignature">let x = f()</div><div id="AppleMailSignature">You'll get an error because the compiler can't know which one you're talking about.</div><div id="AppleMailSignature"><br>Sent from my iPhone</div><div><br>On Mar 10, 2016, at 16:02, Howard Lovatt via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">My apologies I didn't realise you could do that in Swift.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">&nbsp; -- Howard.<br></div></div>
<br><div class="gmail_quote">On 11 March 2016 at 08:43, Joe Groff <span dir="ltr">&lt;<a href="mailto:jgroff@apple.com" target="_blank">jgroff@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class=""><blockquote type="cite"><div>On Mar 10, 2016, at 1:43 PM, Howard Lovatt &lt;<a href="mailto:howard.lovatt@gmail.com" target="_blank">howard.lovatt@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr">@T.J.,<div><br></div><div>Swift does not allow overloading on return type. You cannot write:</div><div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>func f() -&gt; Int</div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>func f() -&gt; String</div></blockquote></div></div></div></blockquote><div><br></div></span><div>You can.</div></div><span class="HOEnZb"><font color="#888888"><br><div>-Joe</div></font></span></div></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>