Ok so can anyone explain to me why anyone should care about the semantics of `match never { x => { ... } }`? Isn't the match dead code?
Read the RFC. It's about semantics of matching w/ trap values and how it relates to UB for all types.
-
-
I did, and it's largely incomprehensible to me.
-
TL;DR: match (!,) {} should compile and evaluating it should be UB making it the same as match ! {}
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.