Link: Union vs sum types (2021)
Viral instruction wrote a blog post way back in 2021 explaining the difference between union and sum types. I had always used these terms pretty much interchangeable, but this explanation makes sense. I guess I was using ‘union type’ as a bit of a short hand for tagged-union type. I think that Elm has even wrestled with this terminology and they settled on “custom union type”, which I’m not overly fond of, but I can see they are going for clarity. ...