<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>on Wed, 10 Jan 2018 07:12:27 +0000 Antoine Cœur &lt;<a href="mailto:adigitalknight@gmail.com">adigitalknight@gmail.com</a>&gt; wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
And what about, as an alternative:<br>
<br>
case (_, #unknown): …  matches any int and any unknown enum case ...<br>
case _:  … matches anything ...<br>
<br>
Then it clearly goes the &quot;pattern matching&quot; way.<br></blockquote><div><br></div><div>this will be logical and consistent. or #default everywhere instead of _ </div><div><br></div><div>case (#default, #unknown): <br></div><div>case #default:</div><div><br></div><div>Mike</div><div><br></div></div></div></div>