|
|
|
|
|
by noisy_boy
541 days ago
|
|
> So that helped function didn't account for the new enum This is where Scala/Rust's enforcement of having to handle all arms of a match clause help catch such issues - if you are matching against the enum, you won't even be able to compile if you don't handle all the arms. |
|
(But yes, exhaustiveness checking for sum types is a great feature.)