2 ms·
I built something simliar https://github.com/jonschoning/Unions/tree/master/Unions https://github.com/jonschoning/Unions/tree/master/Unions I went with `object
by platz 7y ago
I built something simliar https://github.com/jonschoning/Unions/tree/master/Unions https://github.com/jonschoning/Unions/tree/master/Unions
I went with `object` internally instead of subclasses.
One thing that I like about my lib is that is serializes to json pretty well, and i added some more special-case variants such as accumulative errors (AccResult) and some applicative lifting operations.