<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 25, 2016, at 1:44 PM, Jacob Bandes-Storch 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=""><div class="">Premise: there are multiple ways of describing control-/data-flow when a function is called:</div><div class=""><br class=""></div><div class=""><font face="arial, helvetica, sans-serif" class="">&nbsp; &nbsp; func x() <b class="">-&gt; T</b> &nbsp; // x returns a value, of type T, to the caller</font></div><div class=""><font face="arial, helvetica, sans-serif" class="">&nbsp; &nbsp; func x() <b class="">throws</b> &nbsp;// x may throw an error to the caller</font></div><font face="arial, helvetica, sans-serif" class="">&nbsp; &nbsp; func x() <b class="">throws -&gt; T</b> &nbsp;// x may throw an error, and also return a value</font><div class=""><font face="arial, helvetica, sans-serif" class="">&nbsp; &nbsp; func x(...) <b class="">rethrows</b>&nbsp;... // if a closure argument can throw an error, x may also throw</font><div class=""><font face="arial, helvetica, sans-serif" class="">&nbsp; &nbsp; <b class="">@noreturn</b> func x() &nbsp;// x never returns to the caller</font></div><div class=""><br class=""></div><div class="">"noreturn" is currently spelled as an attribute, but like "throws" / "rethrows" / "-&gt; T", it's really describing how control flow works.</div><div class=""><br class=""></div><div class="">IMO this calls for consistency: whatever happens "after" the function is called should appear "after" the parameter list.</div><div class=""><br class=""></div><div class=""><font face="arial, helvetica, sans-serif" class="">&nbsp; &nbsp; func x() <b class="">noreturn</b> {</font></div><div class=""><font face="arial, helvetica, sans-serif" class="">&nbsp; &nbsp; &nbsp; &nbsp; ...</font></div><div class=""><font face="arial, helvetica, sans-serif" class="">&nbsp; &nbsp; }</font></div><div class=""><br class=""></div><div class=""><br class=""></div>Thoughts?<br clear="all" class=""></div></div></div></blockquote><br class=""></div><div>This would require taking noreturn as a keyword (so we could use it in the type grammar). &nbsp;@noreturn is uncommon enough to be not worth doing that IMO. &nbsp;It is also non-primal to the decl it is modifying, which makes it a perfect attribute.</div><div><br class=""></div><div>-Chris</div><br class=""></body></html>