3 ms·
Not sure about Rust, but Typescript allows you to have the default handling but still flag a compile error if a new field is added (the first is useful e.g. if
by michaeljsmith 2y ago
Not sure about Rust, but Typescript allows you to have the default handling but still flag a compile error if a new field is added (the first is useful e.g. if a separate component is updated and starts sending new values).
https://stackoverflow.com/a/39419171/974188 https://stackoverflow.com/a/39419171/974188