4 ms·
Very much apropos: Going between Rust and TS it is painfully obvious how much sth like tagged enums are missing, which can also be seen in this post. I know o
by gr__or 3y ago
Very much apropos:
Going between Rust and TS it is painfully obvious how much sth like tagged enums are missing, which can also be seen in this post.
I know of this [1] proposal for ADT enums which looks like it has stalled. Anyone know of other efforts?
[1] https://github.com/Jack-Works/proposal-enum/discussions/19 https://github.com/Jack-Works/proposal-enum/discussions/19
- dcre 3y agoI find discriminated unions work ok for similar use cases.