4 ms·
Apologies, but here's the obligatory link to my OneOf exhaustive type matching library: https://github.com/mcintyre321/OneOf https://github.com/mcintyre321/OneO
by macca321 7y ago
Apologies, but here's the obligatory link to my OneOf exhaustive type matching library: https://github.com/mcintyre321/OneOf https://github.com/mcintyre321/OneOf
- throwawayy8292 7y agoHey I wanted to thank you! I stumbled across your repo a few years ago, when I was looking at more powerful ways to use the C# type system. I ended up pulling a heavily inspired version of your code into a utility library I made (for a zero dependency package). https://github.com/Matthew-Dove/ContainerExpressions#eithert https://github.com/Matthew-Dove/ContainerExpressions#eithert Once again - thanks for your contribution to my learning!
- jodrellblank 7y agoDid you just dox your own throwaway?
- throwawayy8292 7y agoYep, just got excited when I saw a familiar name I guess. Nothing too egregious on this account's history anyway.
- deleted 7y ago[deleted]
- platz 7y agoI 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.