New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support discriminated unions in the type system #244
Comments
Leaving a note here on (what looks to me like) a somewhat unfortunate variation from the representation of discriminated unions in the afaiu, E.g., If we were following the "Abstracting Extensible Data Types" and
This seems much nicer to me on every level:
|
I also like the approach implemented in |
This fails for lack of support of discriminated unions (#244)
These are failing because they use discriminted unions: #244
We need to implement variants and use them to type discriminated unions and their operators (
match
) in the type system.variant
operator introduced in Add syntax for match and variant operators #1206match
operator introduced in Add syntax for match and variant operators #1206The text was updated successfully, but these errors were encountered: