|
|
|
|
|
by williamdclt
43 days ago
|
|
I agree with you, although other responders make good points. Something I've been wanting in Typescript (and I guess it's the same thing here in Rust) is to type-check exhaustiveness of the known enum values, but also enforce that unknown values are handled. I've made utils for that but they're a bit awkward to use compared to native constructs like switch/case. |
|