Hacker News new | ask | show | jobs
by IshKebab 2380 days ago
Right but some enums are designed to allow new types to be added.

For example suppose you add another image format to the `image` library:

https://docs.rs/image/0.23.0-preview.0/image/enum.ImageForma...

What's more annoying - a major version bump every time you support a new format, or not being able to exhaustively match on all 10 formats?