logoalt Hacker News

lock1yesterday at 8:39 PM1 replyview on HN

I'm curious, if tagged unions are a subset of sum type, what is your definition of "sum type"?

AFAIK, tagged union is sum type, based on sum type mathematical definition.


Replies

9rxyesterday at 9:06 PM

On second thought, I agree with your definition. So Go does, in fact, have tagged unions.