Daniel Leping, I am unfamiliar with java.  Do you have any resources that describe the nightmare in detail?<br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 27, 2016 at 2:50 AM Tino Heth &lt;<a href="mailto:2th@gmx.de">2th@gmx.de</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" class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important" class="gmail_msg">-1 for specifying errors for throws. Please don&#39;t. Proven by practice in java it&#39;s a nightmare.</span></div></blockquote></div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg">In Java, this topic is really interesting:</div><div class="gmail_msg">It sounds like a great idea, but in real-life situations, afaics everyone hates checked exceptions.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">But Swift isn&#39;t Java, and our error handling is different from most established languages, so imho we shouldn&#39;t base that decision on experiences from other models only:</div><div class="gmail_msg">I don&#39;t see downsides, because you already need &quot;try&quot; for everything that can throw, and afaics, it would be easy to ignore the information that only a set of exceptions can happen in a given context.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">So, imho before there is a decision wether &quot;throws&quot; should be moved, the possibility to annotate it with a fixed set of error types should be either abandoned or incorporated. </div></div></blockquote></div>