3 ms·
Or data bearing enums, which bring some of the best of all of those worlds, with (value declaration, not usage) exhaustiveness enforced at compile time: https:
by zbentley 6y ago
Or data bearing enums, which bring some of the best of all of those worlds, with (value declaration, not usage) exhaustiveness enforced at compile time:
https://github.com/klaviyo/matrix_enum https://github.com/klaviyo/matrix_enum
My colleague and I started making use of that pattern last year (before open sourcing the package) and found it very useful.