<p dir="ltr">This is very nice for writing lazy var definitions and single-line computed properties as well. +1 from me. </p>
<br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 19, 2015, 8:30 AM Craig Cruden via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</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"><div><br></div><div>When writing short functional code in a function it would be nice if the return keyword were an optional keyword. </div><div><br></div><div>Just return the last evaluated expression.</div><div><br></div><div><br></div><div>i.e.</div><div><br></div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">    <span style="color:#bb2ca2">func</span> flipFunc&lt;T, U&gt;(arg1: <span style="color:#703daa">T</span>, arg2: <span style="color:#703daa">U</span>) -&gt; (<span style="color:#703daa">U</span>, <span style="color:#703daa">T</span>) {</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">        (arg2, arg1)</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">    }</div></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></div><div style="margin:0px;line-height:normal">The keyword return would still be there for breaking out of a function.</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=8CZIdLciSFC-2BO5jF-2FiP8qN7dBFsgCUZ50wdTsolcRPcCDT19zHCExDVwCV-2FhFcpRPjr3P6kLgChrmQ4ql9xOl6es9y5nM9Kt2up5MzF-2B-2BwDRfC7Ifk9lIe-2BWH2-2BC7J-2BiJHmULWG7IexHFvWzC65a7gv2FWyuXPPQJaF1X2HaoOUJrxzGgZH-2Bq89Fk9jIMfpzsKQ-2F8sAUQooA1v4NixCXNXEe-2FqJYbsrgxGM52SbqgFI-3D" alt="" width="1" height="1" border="0" style="min-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">
</div>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div>