<div dir="ltr">Wondering if you guys think this is a reasonable idea.<div><br></div><div>I was switching on an optional enum today, and naturally gravitated towards including nil as a case:</div><div><br></div><div>enum Coin {</div><div>  case heads</div><div>  case tails</div><div>}</div><div>var result: Coin?</div><div><br></div><div>switch result {</div><div>case heads: print(&quot;heads&quot;)</div><div>case tails: print(&quot;tails&quot;)</div><div>case nil: print(&quot;not yet flipped&quot;) // exhaustive</div><div>}</div><div><br></div><div>Doesn&#39;t compile, and of course I can if-let or guard to unwrap instead, but I like the compactness of this.</div></div>