Hacker News new | past | comments | ask | show | jobs | submit login

It's only fair to call out that #[non_exhaustive] only helps you for the very specific case of adding new enum variants or struct fields. It does nothing for the burden of keeping all existing variants and fields compatible with any way they could have been matched.

However it's also only fair to note that the Rust ecosystem does not consider every [potential] breaking change a major one. https://predr.ag/blog/some-rust-breaking-changes-do-not-requ...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: