News for hackers. Stuff that matters.
Re:What I'd like to see in Go 2.0 by Gwypaas on Friday February 04, 2022 @01:54PM (#30211258)
Rust supports #[non_exhaustive] attributes, forcing users to cover the generic/wildcard case even though you have already covered all existing ones. Although, I rather do versioning and a breaking change if possible. Put it on the parsing/interop level rather than deep in the code during runtime because it is very likely that your code is not correct without handling the extra case either way.

https://doc.rust-lang.org/reference/attributes/type_system.h...

There are no comments on this comment yet.