Good gotcha, reusing the `enum` typeclass for sum enums will be too confusing. Back to `case`? type Option[T] = case of None: discard of Some: T Either[A, B] = case of Le: A of Ri: T BinaryNode = object a, b: ref Node UnaryNode = object a: ref Node Node = case of BinaryOpr: BinaryNode of UnaryOpr: UnaryNode of Variable: string of Value: int Run
- Sum types, 2024 variant Araq
- Sum types, 2024 variant khaledh-nim
- Sum types, 2024 variant Araq
- Sum types, 2024 variant ElegantBeef
- Sum types, 2024 variant morturo
- Sum types, 2024 variant ASVI
- Sum types, 2024 variant Isofruit
- Sum types, 2024 variant ASVI
- Sum types, 2024 variant ElegantBeef
- Sum types, 2024 variant Araq
- Sum types, 2024 variant Isofruit
- Sum types, 2024 variant ElegantBeef
- Sum types, 2024 variant Araq
- Sum types, 2024 variant j-james
- Sum types, 2024 variant ASVI
- Sum types, 2024 variant ASVI
- Sum types, 2024 variant konsumlamm
- Sum types, 2024 variant Araq
- Sum types, 2024 variant Araq
- Sum types, 2024 variant arnetheduck