Closed samhh closed 1 year ago
Borrowing terminology from Serde: https://serde.rs/enum-representations.html#adjacently-tagged
For any given tag and any arbitrary sibling data at any given content tag:
Sum.Member<'Sun'> | Sum.Member<'Rain', { mm: number }> <-> { tag: 'Sun' } | { tag: 'Rain', value: { mm: number } }
This would potentially interoperate with how fp-ts sums are encoded.
How to handle nullary members? Absent content tag? null?
null
Borrowing terminology from Serde: https://serde.rs/enum-representations.html#adjacently-tagged
For any given tag and any arbitrary sibling data at any given content tag:
This would potentially interoperate with how fp-ts sums are encoded.
How to handle nullary members? Absent content tag?
null
?