News for hackers. Stuff that matters.
Re:API design note: Beware of adding an "Other" enum value by michaeljsmith on Sunday March 02, 2025 @10:04PM (#43237867)
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

There are no comments on this comment yet.