<div dir="auto">The branch catches a case of throws</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 19 Feb 2024, 16:18 Patrick Doyle, <<a href="mailto:p.r.doyle@gmail.com">p.r.doyle@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>In Brian's "Uniform handling of failure in switch", he proposes the syntax "case throws". I see the motivation (it certainly reads nicely) but since such clauses are catching exceptions, wouldn't it be more in line with the rest of the language to use "case catch"?</div><div><br></div><div>This would also serve to preserve the word "throws" for its usual purpose if ever "switch ... throws" becomes a thing.</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">--<br>Patrick Doyle<br><a href="mailto:p.r.doyle@gmail.com" target="_blank" rel="noreferrer">p.r.doyle@gmail.com</a></div></div></div></div>
</blockquote></div>