<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class="">I think you’re confusing (or not being clear about) two things: type declarations and closures. `->` means “a function type returning…” in Swift. I believe what you talk about with fat arrows is a syntax for defining closures.</div><div class=""><br class=""></div><div class="">… and do we need a second syntax for closures in Swift?</div><div class=""><br class=""></div><div class="">No.</div></div><br class=""><div class="">
<div class="">— Radek</div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 18 Dec 2015, at 18:35, David Fekke via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">In wanted to propose either adding the fat arrow (=>), 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 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 </div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=4hhvaxvZNsLrnZM9llg93kxoqfFYC8lhv8HAehOIDqKzUIcpO1aG6t3-2FWvqmroXi50PWn8VZt3YvWEdq14td5-2FYSznQhPZkR4xHnIogmg5T2Ej8JfEaNm07sgUlQgF8u5i79vYIkEML5ZrywHBhR-2BENJSxo9P4dQ0Whog7Uw96D0vWZQhPxVG0AeoLvl-2BOkX3SVstDEyVB7KRed-2BF3QVBzKT6-2BOsvA5uRgWorbtawOg-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=""></body></html>