|
|
|
|
|
by zbentley
2206 days 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 My colleague and I started making use of that pattern last year (before open sourcing the package) and found it very useful. |
|