We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sum types - OR there is ONE way how to define: type
type
Product types - AND there are MANY ways: () (a, b) (a, b, c) { x: a, y: b } type A = A a b
()
(a, b)
(a, b, c)
{ x: a, y: b }
type A = A a b
Let's simplify it If I want OR I use type and |. If I want AND I use {}.
|
{}
So remove tuples unit is {} variant has only one argument { model, Cmd.none } is the same as { a: model, b: Cmd.none }
{ model, Cmd.none }
{ a: model, b: Cmd.none }
The text was updated successfully, but these errors were encountered:
Thanks for reporting this! To set expectations:
Finally, please be patient with the core team. They are trying their best with limited resources.
Sorry, something went wrong.
Sorry, 👎 to breaking changes from me.
why would we do this and break practically every elm package.
No branches or pull requests
Sum types - OR
there is ONE way how to define:
type
Product types - AND
there are MANY ways:
()
(a, b)
(a, b, c)
{ x: a, y: b }
type A = A a b
Let's simplify it
If I want OR I use
type
and|
.If I want AND I use
{}
.So
remove tuples
unit is
{}
variant has only one argument
{ model, Cmd.none }
is the same as{ a: model, b: Cmd.none }
The text was updated successfully, but these errors were encountered: