-
Notifications
You must be signed in to change notification settings - Fork 656
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
Clarify type syntax #2310
Comments
Thanks for reporting this! To set expectations:
Finally, please be patient with the core team. They are trying their best with limited resources. |
To me it seems somewhat confusing to call single-variant types "or": type or Email
= Email { local : Local, domain : Domain } |
that is how it works now, but that is another topic: I would suggest following: And type - zero and more values That also solves a problem how data should be serialized into text/binary format. Now, it is not clear if: |
Since
type
can only define sum(or) type let's usetype or
keyword instead, to make it explicit.Or maybe:
And type - zero and more values
type alias
Or type - zero and more variants
type or
Opaque type - basically wrapper around one value
type opaque
The text was updated successfully, but these errors were encountered: