That’d be beautiful. I’ve often wanted enums to be a bit more flexible. This solves the same problem by making protocols a bit more constrained. An Either type (with an arbitrary number of possibilities/cases) would be another solution.
That’d be beautiful. I’ve often wanted enums to be a bit more flexible. This solves the same problem by making protocols a bit more constrained. An Either type (with an arbitrary number of possibilities/cases) would be another solution.