There's a library: https://sumtypes.readthedocs.io/en/latest/
It's serviceable, and even does static checking of total coverage of cases. I will say that it makes linters freak out.
It's serviceable, and even does static checking of total coverage of cases. I will say that it makes linters freak out.
No comments yet.