Replies: 2 comments 1 reply
-
It is rejected. The solution would be to let the two styles of function definitions coexist, but we need to work on that. It's not like this is impossible. |
Beta Was this translation helpful? Give feedback.
1 reply
-
We now support these definitions by default. Overlapping patterns need explicit specification |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consider the following code, which is essentially almost identical to the code in #96, only with the two clauses swapped.
The second clause is intended as a "default" case. Such pattern may be widely used in real-world programming, but Aya (as of 1747794) rejects this. Is this behavior expected? Is it possible to make this type check while also having overlapping patterns?
Beta Was this translation helpful? Give feedback.
All reactions