Replies: 1 comment 2 replies
-
I can confirm that the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Koka infers an
exn
effect when a pattern match is incomplete. This makes sense, but does make it hard compared to other languages with pattern matching to use the compiler errors to determine what is missing. For example;The compiler complains here with this message;
I can't actually see what pattern I'm missing here. That makes it much harder to eliminate the exception effect and make sure the code is sound. Is there a way to get the compiler to expect a match statement to be complete? It feels to me like ideally the compiler would just require matches to be exhaustive, and to get back to the current behavior you could just add a catchall pattern that would throw.
Beta Was this translation helpful? Give feedback.
All reactions