<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
The thin arrow in Swift is used to define to result type of a function / closure.
<div class=""><br class="">
</div>
<div class="">someFuncWithClosure { (a: Int, b: Int) -&gt; String in &quot;\($0 &#43; $1)&quot; }</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Am I understanding this correctly that</div>
<div class=""><br class="">
</div>
<div class="">your first suggestion is</div>
<div class=""><br class="">
</div>
<div class="">someFuncWithClosure { (a: Int, b: Int) -&gt; String =&gt; &quot;\($0 &#43; $1)&quot; }</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">and your second suggestion is</div>
<div class=""><br class="">
</div>
<div class="">someFuncWithClosure { (a: Int, b: Int) =&gt; String in &quot;\($0 &#43; $1)&quot; }</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">?</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">C# doesn't allow specifying the return type for closures (you have to define a delegate type first)</div>
<div class=""><br class="">
</div>
<div class="">someFuncWithClosure((int a, int b) =&gt; string.Format(&quot;{0}&quot;, a &#43; b));</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Etan</div>
<div class=""><br class="">
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 18 Dec 2015, at 18:35, David Fekke via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">In wanted to propose either adding the fat arrow (=&gt;), or replacing the thin arrow with the fat arrow.
<div class=""><br class="">
</div>
<div class="">I know that Java uses the thin arrow, but &nbsp;JavaScript, TypeScript and C# both allow the use of the fat arrow for lambda syntax.</div>
<div class=""><br class="">
</div>
<div class="">Thoughts?</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">David Fekke&nbsp;</div>
</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=tTTJ5sn5y0uc3ODSZa-2BndLNwXCDS7T2cq5OlDDhG0Rs8Dfk-2FA1sFjNQljGM3jsOdqUZLbj1T8XnUG2-2FbUw5Xa7gM8HG0dXCD-2B2q8RuV0cWzPVv4Hz1iJNdxHfPcL069exM7kDhAyPSscxHi2Iw9V6fjG1U5Z5XcUYSoZ0CWTtw8v-2Fg31WaJn1OpeCl-2Fb4ICGhChRXFSpfoht2-2FOeG-2BeKXsuL-2Fq1Cui4NpoFsOF6pW64-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
 _______________________________________________<br class="">
swift-evolution mailing list<br class="">
<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">
https://lists.swift.org/mailman/listinfo/swift-evolution<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>