News for hackers. Stuff that matters.
Re:Tagged unions, or ‘variants’, in C by k__ on Monday June 26, 2017 @06:37AM (#14635664)
I see.

I thought that type classes are sum types also.

Re:Tagged unions, or ‘variants’, in C by tome on Monday June 26, 2017 @06:49AM (#14635709)
You can sort of consider them as open sum types which third parties can add additional summands to but that's probably not a very helpful way of thinking about them.