News for hackers. Stuff that matters.
Re:Using Enumerated Types in Python by zbentley on Saturday June 06, 2020 @09:59PM (#23444113)
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.

There are no comments on this comment yet.