Re:Sum Types in Go
by inglor on Friday December 26, 2014 @11:35AM
(#8799230)
That `enum Counter` example (and Either in general) is a union type and not a sum type. It's either Counting (with a u32) or Halted (with a u32) but never both at the same time.
[ Parent
| on HN ]
There are no comments on this comment yet.