<div dir="ltr">In this scenario, should calling a warn_unused_result function as the last statement in a closure/function count as &quot;using&quot; its result (i.e. implicitly returning it)?<div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>Jacob<br></div></div></div></div>
<br><div class="gmail_quote">On Sat, Dec 19, 2015 at 4:51 PM, Erica Sadun via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</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"><div>Is there a reason that any final non-void statement in a closure or function shouldn&#39;t automagically be an optional return? (And automagically warn_unused_result...?)</div><div><div class="h5"><br><div><blockquote type="cite"><div>On Dec 19, 2015, at 5:44 PM, Andrew Bennett via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><br><div><div dir="ltr">+1 for consistency with closures</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 20, 2015 at 8:15 AM, Stephen Christopher via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The discussion I was remembering, comment courtesy of Chris: <div><a href="https://devforums.apple.com/message/1014317#1014317" target="_blank">https://devforums.apple.com/message/1014317#1014317</a><br></div><div><br></div><div>(linked from <a href="https://devforums.apple.com/thread/255242" target="_blank">https://devforums.apple.com/thread/255242</a>)</div><div class="gmail_extra"><br></div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=pQw7h83fWt3LLbgkfL4TSUL0weaZnVFZxDe5GShw4uRfHumwpL6M9Cp7ey7v7tvvG0KhLfX4Z2C6Ww75ML8M6fNm2DvO2PrEvmloc9MNkli0YnZKDYPLB7cj74slhlHRdVI7SMyBI2INYGpsdt1r0AJBnK148IlUEtUQ-2BH0W2UirtRZ1bY-2BRb3P6DqRGmShLQFxD0PjXwtfbsYF-2Be5NfYzjBTFxiLf7pgychsoPXd2o-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">
<br>_______________________________________________<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>
<br></blockquote></div><br></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=r5jpKsi6nat7oa43lpCLi5GRGm2utDkbDscuFklXZ2cnWxjR7etC-2BNePgjHjPv5gg-2Fi6J7eaG-2BHVn835t458W-2FGvuEwkdg7a-2BWACtXfrFqugyT1qZuiy4tM37YrWfQBY8F9wHFzVp4BN0iuJPJRUbM5UWYX6BgQIydw3slu92DdZkf5zNpJ1L2Eg3XvAjqJdi5jc-2F9-2F7X-2BkeeMvIhXGy0q-2F5xyUxkVBxa2sUQ6a-2BRcg-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">
_______________________________________________<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" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></div></blockquote></div><br>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=P-2BsYbBZHRBuLDBJaL4DIKDNfkkjpROowTyRAObV11qzWHn6b5BdlI8otW1eefpk7gNg8mS8koEC9EhyBGf-2BGq-2FYjgOahlnw56or5kkRuN4YkbFwD-2FhZYJ274gKyzjlkPDlMj0qs-2F24HIPHtMwgDs-2BzEx2dnpv3Xv75r7U0cmPVyh1cJ-2BB3ZNoJqvu5Ohb84yF8vI5hP4L0iOo39pOijL9Zn06zV6hnG928lnT-2FydhkA-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></div></div>
<br>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">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>
<br></blockquote></div><br></div></div>