@rauschma IMHO, TypeScript provides good support for algebraic types:
```
type Product<A, B> = readonly[A, B];
type Sum<A, B> = readonly['a', A]|readonly['b', B];
```
Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
Sergey on FunctionalScript (functionalscript@techhub.social)'s status on Friday, 19-Jan-2024 03:29:00 JSTSergey on FunctionalScript